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 1.6.4 升级到 1.9.1...我可以使用正则表达式来更改谁:
"$(".btnPrint").live("click", function() {"
进入这个
"$('body').delegate(".btnPrint", "click", function() {"
与 Netbeans...
也不要使用.delegate。使用.on.
.delegate
.on
/\$\((["'])(.*?)\1)\.live\((["'])(.*?)\3/$("body").on("\2", "\4"
无论如何,得到社区的答案..
在网豆中:
将以下内容放入“查找内容”输入中。
\$((["'][^"']+["'])).live(["']click["']
并在“替换为”中输入以下内容。
\$('body').on("click", $1