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');