Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在模板中,include工作正常,除非在本script节中:
include
script
块头2 标题一些标题 脚本 功能页面初始化(){ 包括 restful.js restful.init(); } document.addEventListener('load',pageInit)
以include restful.js直接脚本的形式出现 - 翡翠不执行包含。
include restful.js
我如何在其中获得include转储行pageInit()?
pageInit()
我相信,这样的动作一定不是模板引擎的工作,而是资产管理器的工作。
无论如何,这感觉不对,但仍然有效:
//- somewhere in head | <script> include ../public/javascripts/log.js | </script>