<?php
$js = <<<JS
..........//没有<script>标签
............
.................
JS;
$this->registerJs($js);//这个方法在view.php里面
$html = <<<HTML
.......................
HTML;
echo $html;
在php文件里面写js和html
最新推荐文章于 2023-12-27 10:47:46 发布
<?php
$js = <<<JS
..........//没有<script>标签
............
.................
JS;
$this->registerJs($js);//这个方法在view.php里面
$html = <<<HTML
.......................
HTML;
echo $html;