在php文件里面写js和html

<?php
$js = <<<JS
..........//没有<script>标签
............
.................
JS;
$this->registerJs($js);//这个方法在view.php里面


$html = <<<HTML
.......................
HTML;
echo $html;
posted @ 2017-11-09 19:36  蜗牛使劲冲  阅读(7)  评论(0)    收藏  举报  来源