I want to include JavaScript file in my view.
And I want to render it together and not as script file (registerScriptFile).
How can I do that?
I want to include JavaScript file in my view.
And I want to render it together and not as script file (registerScriptFile).
How can I do that?
收起
Just renderFile()
it would render any file, remember to wrap it with <script>
tag.
报告相同问题?