success: function(json) { //如果調用php成功?? ? ? ? ? ? //alert(json.username+'\n'+json.password); //把php中的返回值(json.username)給 alert出來?? ? ? ? ? ? $('#result').html("姓名:" + json.username + "<br/>密碼:" + json.password); //把php中的返回值顯示在預定義的result定位符位置?? ? ? ? }上面jquery中ajax請求函數中的參數json是固定的還是可變的?如果是固定的,它的數據是自動傳進去的嘛?
success: function(json)參數疑問
琦屹
2015-09-17 17:09:20