gpt4 book ai didi

jquery - jquery 1.4.2 中的更改破坏了代码?

转载 作者:行者123 更新时间:2023-12-01 02:49:21 24 4
gpt4 key购买 nike

我在使用 jquery 1.3 的页面上有此代码,但现在在 jquery 1.4.2 中,它因语法错误/无法识别的表达式而中断:

$(document).ready(function(){    $("span[@name^=charge]").click(function(){        $("#" + $(this).attr("name")).show();        $(this).hide();    });});

我该如何解决这个问题?

最佳答案

@name 已被弃用 - 现在只需使用 name

请参阅此主题: http://www.mail-archive.com/[email protected]/msg58250.html

关于jquery - jquery 1.4.2 中的更改破坏了代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4130492/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com