开发者

How can I find unsupported / deprecated jQuery functions in a JS file?

开发者 https://www.devze.com 2023-04-12 13:47 出处:网络
Is there a website or a tool where I can enter some jQuery code and it will show me whether unsupported / deprecated function开发者_C百科s are used in this code?

Is there a website or a tool where I can enter some jQuery code and it will show me whether unsupported / deprecated function开发者_C百科s are used in this code?

This would be really nice...


jQuery lint should do the job:

http://james.padolsey.com/javascript/jquery-lint/


jQuery now provide a migrate plugin (1.4.1 & 3.0+) to display warnings on any use of deprecated functions in browser console:

https://github.com/jquery/jquery-migrate/#readme

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号