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.
我正在处理一个引用 jquery 的网页和另一个带有该页面的自定义 javascript 的 js 文件。由于自定义 js 文件是外部的,它没有向我展示 jquery 的智能感知。有什么办法让它工作吗?
您可以添加它,例如,如果 jQuery 在相关文件旁边,请将其添加到您想要智能感知的文件的顶部:
/// <reference path="jquery.js" />