yii2 register js code in a view

前端 未结 4 1874
逝去的感伤
逝去的感伤 2021-02-19 08:52

What is the best way to register js code in yii2 view?

1

registerJs(
    \'$(\"document\").ready(function(){ alert(\"hi\"); });\         


        
4条回答
提交回复
热议问题