查瞭不少資料,最後,還是jquery指南的書上找到瞭詳細的參數(async: false,),做好後,示例碼放上。
$.ajax
({
cache: false,
async: false, // 太關鍵瞭,學習瞭,同步和異步的參數
dataType: 'json', type: 'post',
url: "../handle/Ladder_Fee_Code.ashx?ajaxaction=Select_FangAn",
success: function (data)
{
alert("1");
}
});
alert("2");