fhbdd
 1         var strs = new Array();
 2 
 3         function getData() {
 4             var strs2 = new Array();
 5             $.ajax({
 6                 type : "POST",
 7                 url : "findAttentionGoods.action",
 8                 data : "pno=" + pageNo,
 9                 async : false,
10                 success : function(msg) {
11                     strs2 = msg.list;
12                     total = msg.total;
13                     pagetotal = msg.pagetotal;
14                 }
15             });
16             return strs2;
17         }                

主要是   async : false  这个属性

应该还有更好的方法

分类:

技术点:

相关文章:

  • 2021-11-01
  • 2021-11-05
  • 2021-09-07
  • 2021-12-14
  • 2021-11-14
  • 2021-10-15
猜你喜欢
  • 2021-11-05
  • 2021-11-01
  • 2021-12-14
  • 2021-10-14
  • 2021-11-05
  • 2021-11-05
相关资源
相似解决方案