1
我正在處理的應用程序中,通過jquery ajax從數據庫中獲取一些數據並顯示附加的table.this應用程序與firefox和chrome一起使用效果很好,但是當品嚐到Internet Explorer時得到的錯誤OBJECT必需的代碼0的問題,我真的不知道什麼問題或如何去abot它。我使用ie6。感謝adavance錯誤消息在Internet Explorer中所需的對象
var ename =$(this).find('ENAME').text();
var pnr =$(this).find('PNR').text();
var inr =$(this).find('INR').text();
var operator =$(this).find('OPERATOR').text();
var maxstime =$(this).find('MAXSTIME').text();
var timeagg =$(this).find('TIMEAGG').text();
var link =$('<a class=\"item\" href=\"#\">'+ename+'</a>');
var new_tr=$('<tr></tr>');
if(index%2==1){new_tr.css({backgroundColor:'#7cb6f2'});}
var new_td_1=$('<td></td>').append(link);
new_tr.append(new_td_1);
var new_td_2=$('<td></td>').text(operator);
new_tr.append(new_td_2);
var new_td_3=$('<td></td>').text(pnr);
new_tr.append(new_td_3);
var new_td_4=$('<td></td>').text(inr);
new_tr.append(new_td_4);
var new_td_5=$('<td></td>').text(maxstime);
new_tr.append(new_td_5);
var new_td_6=$('<td></td>').text(timeagg);
new_tr.append(new_td_6);
$('table tbody').append(new_tr);
$('#mytable').tablesorter();` <table id="mytable" border="1px" width="100%">
<thead>
<tr>
<th>NAME</th>
<th>OPERATOR</th>
<th>PNR</th>
<th>INR</th>
<th>MAXSTIME</th>
<th>TIMEAGG</th>
</tr>
</thead>
<tbody>
</tbody>
</table>`
我該怎麼做? – fon 2010-07-01 08:51:51