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"
success:bindCounterList,
complete:
(){
//subData("");
}
});
}
$(
"#subShops"
).append(
"<optionvalue=\""
+subShop.shopno+
"\">"
+subShop.shopName+
"</option>"
);
});
}
//将分店的所有pos机加载到select中
bindCounterList(json){
//遍历json对象
);
"#counterId"
).empty();
});
}
|