写错了 mui.ajax(*****, { data: '我是JOSN格式的字符串', dataType: ‘JSON’, type: 'POST', success: function(data) { }, error: function(xhr, type, errorThrown) { } }); 这样就可以了,还不行那就是服务端的问题了
2 个回复
wp_drifter
mui.ajax(***,{
type:'JSON'
wp_drifter
写错了
mui.ajax(*****, {
data: '我是JOSN格式的字符串',
dataType: ‘JSON’,
type: 'POST',
success: function(data) {
},
error: function(xhr, type, errorThrown) {
}
});
这样就可以了,还不行那就是服务端的问题了
x***@qq.com (作者)
不行... 用jquery的库都是可以的。换了mui就不行了。
2016-05-05 18:56