$.ajax({ url:"getCounterOfShop.action", type:"post",

前端之家收集整理的这篇文章主要介绍了$.ajax({ url:"getCounterOfShop.action", type:"post",前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
JavaScript code
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function listShops(json){
//遍历json对象
var data=eval( "(" +json+ ")" );
$.each(data, (i,subShop){
if (i==0){
$.ajax({
url: "getCounterOfShop.action" ,
type: "post" dataType: "json" data: "_subShop=" +subShop.shopName,
success:bindCounterList,
complete: (){
//subData("");
}
});
}
$( "#subShops" ).append( "<optionvalue=\"" +subShop.shopno+ "\">" +subShop.shopName+ "</option>" );
});
}
//将分店的所有pos机加载到select中
bindCounterList(json){
//遍历json对象
);
"#counterId" ).empty();
+counter.counterId+ +counter.counterName+ );
});
}
原文链接:https://www.f2er.com/ajax/166312.html

猜你在找的Ajax相关文章