在前段写入ajax请求,注意dataType:'json' 类型要标注json,否则写入var d=eval("(“+result+")")或者jQuery.parseJSON(result);方法进行解析成json对象才能遍历
后端代码
在前段写入ajax请求,注意dataType:'json' 类型要标注json,否则写入var d=eval("(“+result+")")或者jQuery.parseJSON(result);方法进行解析成json对象才能遍历
后端代码