标签:
<script> <!-- 编写script标签是为了编辑器识别js代码,可以省略 -->
<?php $this->beginBlock(‘js_end‘) ?> ...js code... <?php $this->endBlock(); ?> </script> <?php $this->registerJs($this->blocks[‘js_end‘],\yii\web\View::POS_END);//将编写的js代码注册到页面底部 ?>
标签:
原文地址:http://www.cnblogs.com/benlightning/p/4466073.html