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

BlogPost5 min read
在php文件里面写js和html
Written on 2017.11.09

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