用户有权浏览菜单。
当用户需要menu_1.js文件时 但B用户不需要menu_1.js文件,也不必去那里
我想在 angular.js 版本 1.x 的 index.html 中读取需要的 js 文件。
我可以解决这个问题吗?
谢谢你的回答。
最佳答案
这样的事情可能会有所帮助
<footer ng-if="userA">
<!-- Call the script here -->
</footer>
<footer ng-if="userB">
<!-- Call the script here -->
</footer>
关于javascript - index.html 可以读取 angular.js 1.x 版本中需要的 .js 文件吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40711952/