代码如下: <pre name=”code” class=”html”>前台调用(第一个参数是table的id): <input value=”导出” type=”button” /> function toExcel(inTblId, inWindow) { if ($.browser.msie) { //如果是IE浏览器 try { var allStr = “”; var curStr = “”; if (inTblId != null && inTblId != “” && inTblId != “null”) { curStr = getTblData(inTblId, inWind