<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- 导出excle的三个方法 要把ie浏览器的"对没有标记为安全的 ActiveX 控件进行初始化和脚本运行 设置为提示或启用" -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>WEB页面导出为EXCEL文档的方法</title>
</head>
<body>
    <table , openPara);

            }

            xlsWin.document.write(inStr);

            xlsWin.document.close();

            xlsWin.document.execCommand('Saveas', true, inName);

            xlsWin.close();

        }

    </script>

</body>
</html>

相关文章: