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.
有没有办法让 JSLint 查看 asp.net 项目中的 cshtml 文件的内容? 我知道我可以将脚本提取到 js 文件中,一切都很好,但是我有一些一次性的脚本,我真的不想坐在我的 Scripts 目录中。
jslint 仅用于验证您的 javascript 代码,并且您的 javascript 代码无论如何都应该位于与 HTML/CSHTML 不同的文件中。
所以你只需要将 js 文件复制到文本框中。太糟糕了,不可能上传几个 js 文件,然后将得到验证。