How can I find unsupported / deprecated jQuery functions in a JS file?
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
精彩评论