gpt4 book ai didi

jquery - ajax 中的成功函数不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 21:44:51 24 4
gpt4 key购买 nike

我有一个 ajax 函数,我希望 success 更改一些 HTML 元素的 CSS,在 success 我做了:

success:function(d){
$('#name').css('weight','normal');
$('#msg').css('weight','normal');
$('#date').css('weight','normal');
}

但它不会起作用。

当我这样做时:

success:function(d){
alert('some thing');
}

成功了。

所以我认为问题出在我在 success 函数中使用的代码。

最佳答案

没有 weight CSS 属性,尝试使用 font-weight

关于jquery - ajax 中的成功函数不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21140201/

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