$.ajax({? ? ? ? type: "get",? ? ? ? async: false,? ? ? ? url: "",? ? ? ? data: {? ? ? ? ? ? app: "Cas",? ? ? ? ? ? class: "Login_Login",? ? ? ? ? ? phone: "11111111",? ? ? ? ? ? password: "123456"? ? ? ? },? ? ? ? dataType: "jsonp",? ? ? ? success: function(json) {? ? ? ? ? ? //在此之前若沒有定義回調函數success_jsonpCallback1則執行下面的代碼? ? ? ? ? ? console.log(json)? ? ? ? },? ? ? ? error: function() {? ? ? ? ? ? alert('fail');? ? ? ? }? ? });//返回數據是這樣的{ ?"status": "0", ?"msg": "", ?"data": { ? ?"userid": null, ? ?"phone": null, ? ?"username": null, ? ?"nickname": null, ? ?"avatar": null, ? ?"birthday": null, ? ?"gender": null ?}}//FireFox報錯
SyntaxError:?missing?;?before?statement
//Chrome報錯
Uncaught?SyntaxError:?Unexpected?token?:
- 4 回答
- 1 關注
- 3247 瀏覽
添加回答
舉報
0/150
提交
取消