$.ajax({
       type:"post",
       url:"testAction.action",
       data:{
       classId:classId
       },
       success:function(rs){
          var studentArray=[]; //前台创建个数组对象保存数据
         $.each(rs,function(i,item){
           var student;
           student.name=item.name;
           student.id=item.id;
           student.age=item.age;
studentArray.push(student); //将student 对象信息保存到数组对象中 }); }, error:function(){ alert("获取数据时发生错误"); } });

相关文章:

  • 2021-12-16
  • 2022-02-09
  • 2021-12-06
  • 2021-06-05
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
相关资源
相似解决方案