jquery中的更改1.4.2打破代码? [英] changes in jquery 1.4.2 breaking the code?
本文介绍了jquery中的更改1.4.2打破代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用jquery 1.3的页面上有这个代码,但是现在在jquery 1.4.2中它突破了语法错误/未识别的表达式:
I had this code on a page using jquery 1.3, but now in jquery 1.4.2 it's breaking with syntax error/uncrecognized expression:
$(document).ready(function(){
$("span[@name^=charge]").click(function(){
$("#" + $(this).attr("name")).show();
$(this).hide();
});
});
如何解决这个问题?
推荐答案
@name已弃用 - 只需立即使用名称
@name has been deprecated - just use name now
查看此主题:
http://www.mail-archive.com/jquery-en@googlegroups.com/msg58250.html
这篇关于jquery中的更改1.4.2打破代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文