angular.js - How to use WebStorm External Libraries in HTML file?
问题描述
Forgive me use Enligsh, Because my linux did not have Chinese input.
As the picture show , I add lib in External libaries, but I do not know how to use it,Thanks for your reply!
问题解答
回答1:External Libraries will help you working with WebStorm with full/advance coding assistance at disposal, such as auto completion, documentation lookup, keywords navigation etc. They all be used in JavaScript files, not HTMLs, this is how and where External Libraries works.
If what you need is to refer the correct path to angular.js file, whatever you added to External Libraries doesn’t matter at all. You need to either put angular.js in your project w/ path relative to the HTMLs, or add angular.js or its path as the content root of this project.
See https://www.jetbrains.com/webstorm/help/configuring-folders-within-a-content-root.html to get more depth information about this topic.
相关文章:
1. android glide asbitmap 在baseadpter中的问题2. angular.js - angularjs scope.$watch取不到input变化的值3. java - 为什么第一个线程已经释放了锁,第二个线程却不行?4. 如何解决docker宿主机无法访问容器中的服务?5. javascript - Android 的 webview 中怎么监听 url 的 hash 变化6. mysql - 仅仅只是把单引号与反斜杠转义不用prepare statement能否避免sql注入?7. spring - mysql中事务是互斥的么?8. javascript - canvas压缩图片的原理是什么9. javascript - 获取标签中的字符串10. docker网络端口映射,没有方便点的操作方法么?

网公网安备