jQuery Ajax()方法使用指南

2020-05-24 21:28:43易采站长站整理

                               success:function(json){
                                 try{
                                      obj=result; 
                                }catch(e){}
                                jQuery(“#prizelist”).html(“”);
                                var str=””;
                                for(var i=0;i<obj.length;i++ ){
                                    str+='<tr><th>’+prizearray[obj[i].prizeno]+'</th>’;
                                    str+='<td>CD-KEY:’+obj[i].cdkey+'</td>’;
                                    str+='<td>期限:’+obj[i].expiratedate+’前</td></tr>’;
                                }
                                jQuery(“#prizelist”).append(str);                  
                               }