jQuery回调函数不执行
jQuery $.post 不执行回调函数,原来服务器返回的 contentType 为 text/json,但是,这个 JSON 中的属性没有用引号引起来,所以 jQuery 没有去执行回调函数。
不推荐的写法:
{ name: "itpow" }
以上写法在某些场合、某些解析器中不认可。
兼容性比较高的推荐写法:
{ "name&<strong style="color:transparent">来源gaodai#ma#com搞@@代~&码网</strong>quot;: "itpow" }
本文来自jQuery答疑栏目,欢迎学习!
以上就是jQuery回调函数不执行的详细内容,更多请关注gaodaima搞代码网其它相关文章!