简体   繁体   English

找到未使用的Javascript函数?

[英]Find unused Javascript functions?

I have around 100 .js files in my application. 我的应用程序中有大约100个.js文件。 I need to find the unused functions from these files. 我需要从这些文件中找到未使用的函数。

Which editor or tool can help me? 哪个编辑器或工具可以帮助我?

看一下JSLint代码质量工具。

You can do this using Jsure , a Javascript lint implementation. 你可以使用Jsure实现这个,这是一个Javascript lint实现。 You'll be looking for the -unused-funs flag 你将寻找-unused-funs标志

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM