在 enduro.js CMS 中包含外部 js
Include external js in enduro.js CMS
我正在尝试使用 enduro.js,但我需要在我的 index.hbs 中包含一个外部 js 文件,在正文之后放置一个脚本标记,就像普通的 html 文件一样。
<script src="/assets/js/popper.js"></script>
这只是在 chrome 控制台中说我
Refused to execute script from
'http://localhost:3000/assets/js/popper.js' because
its MIME type ('text/html') is not executable, and strict MIME type
checking is enabled.
有人可以帮助我吗?
提前致谢!
这可能会有所帮助。
<script src="/assets/js/popper.js" type="text/javascript"></script>
我正在尝试使用 enduro.js,但我需要在我的 index.hbs 中包含一个外部 js 文件,在正文之后放置一个脚本标记,就像普通的 html 文件一样。
<script src="/assets/js/popper.js"></script>
这只是在 chrome 控制台中说我
Refused to execute script from 'http://localhost:3000/assets/js/popper.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
有人可以帮助我吗?
提前致谢!
这可能会有所帮助。
<script src="/assets/js/popper.js" type="text/javascript"></script>