博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jQuery POST返回的JSON数据格式
阅读量:7008 次
发布时间:2019-06-28

本文共 408 字,大约阅读时间需要 1 分钟。

hot3.png

post返回的json,是json字符串,而非json对象,要获得json对象,需要在post的最后一个参数中指明接受的数据格式为json

$.post("firewall_acl_list.php",{},function(data){                    addressSelector.prototype.data = data;        var residenceAddress = new addressSelector(document.getElementById("province"),document.getElementById("city"),document.getElementById("district"));                },'json');

转载于:https://my.oschina.net/u/1792865/blog/301850

你可能感兴趣的文章