<div class="codetitle"> <span><a style="CURSOR: pointer" data="64403" class="copybut" id="copybut64403" onclick="doCopy('code64403')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code64403"> <br>// js取单元格自定义属性值,IE和FF下的不同实现 <br> result+="<item>" <br>var isIE=document.all ? true : false; <br>if(isIE)//IE <br>{ <br>for (var i=0;i<obj.cells.length>result+=""+obj.cells[i].fieldname+">"; <br>} <br>else{ //FF <br>for (var i=0;i<obj.cells.length>result+=""+$(obj.cells[i]).get(0).attributes[0].nodeValue+">"; <br>} <br>result+="</obj.cells.length></obj.cells.length></item>"<br> </div>