您当前的位置: 首页 > 

暂无认证

  • 1浏览

    0关注

    94616博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

yii2再视图里面写js代码,怎么做?

发布时间:2022-02-04 18:17:47 ,浏览量:1

<?php
\frontend\assets\AppAsset::register($this); ?> <?php  $this->beginPage() ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <?php $this->registerJs("alert(1)")?> <?php $this->head() ?> </head> <body> <?php $this->beginBody() ?> <?php $this->endBody() ?> </body> </html> <?php  $this->endPage() ?> 

在这里插入图片描述

<?php $this->registerJs("alert(1)")?> 
关注
打赏
1655516835
查看更多评论
立即登录/注册

微信扫码登录

0.0479s