1 var strdata = "";
2 function getajax() {
3 $.ajax({
4 type: "POST",
5 url: "Handler.ashx",
6 success: function (data) {
7 strdata = data; } }) }
8 function fun2() {alert(strdata + " is data");}
9
10
11 $.queue("fx", getajax());
12 $.queue("fx", fun2());$.dequeue("fx");这样写队列怎么不行啊