解决php使用json_encode在前端返回字符串的问题

$.post('?',{user:user,passwd:passwd},function(e){})

解决方法
$.post添加第四个参数

$.post('?',{user:user,passwd:passwd},function(e){},'json')

猜你喜欢

转载自www.cnblogs.com/wangdeguao/p/9109148.html