function GetStop(serachType, date, flightNo1, flightNo2, isStop) {
var flightNo;
//开始提交
if (isStop != "0") {
if (flightNo2 != "") {
flightNo = flightNo2;
}
else {
flightNo = flightNo1;
}
var res;
$.ajax({
//要用post方式
type: "post",
url: "../../tools/LotusABESubmit.ashx?action=" + serachType + "&flightNo=" + flightNo + "&date="+date,
data: "{}", //把要调用的函数名作为参数传递到服务器就好了 //参数(如果没有参数:null)
//方法所在页面和方法名Data.aspx
contentType: "application/json; charset=utf-8",
dataType: "json", //dataType: "json",
async:false, //关闭异步返回参数
success: function (data) {
//返回的数据用data.d获取内容 json
//alert("data:" + data.FF.Items.Item.Airport);
var item = data.FF.Items.Item;
res = "经停:" + item.Airport + "(" + item.ArriveTime + "-" + item.DepartureTime + ")";
//alert(res);
//return res;
},
error: function (err) {
alert("err:" + err);
}
});
return res;
return false;
//this.checkScript = '../../tools/LotusABESubmit.ashx';
}
else {
return "直飞";
}
}