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


$html = <<<HTML ....................... HTML; echo $html;