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