php端传回数据方式:
echo 'jsoncallback('.json_encode($data).')';
---------------------------------------------------------------------------------
js端传入:$.ajax({
url: 'http://e.mix361.com/index.php?r=open_back/form/subdata',
type: "get",
dataType:'jsonp',
jsonpCallback: 'jsoncallback',
data: {"xx":,"xx":"","xx":"","xx":""},
success: function (data) {if(data.errNum == 0){alert("提交成功!");}},
error: function(){alert("提交失败");}
});