随笔分类 -  JAVASCRIPT

Javascript 相关
摘要:/******************************* 说明:运行Window应用程序* * 备注:该方法只能在IE中运行,且存在较大的安全隐患,斟酌使用** 调用示例: var oApp = new Application(); oApp.Run("C:\\Windows\\notepad.exe");**********************************/function Application() { //参数:sPath 要执行应用程序路径 this.Run = function (sPath) { if (navigator.userAge 阅读全文
posted @ 2011-08-10 17:27 昔日醉离愁 阅读(464) 评论(0) 推荐(0)
摘要:/*** 说明* 导出指定元素内数据到Excel中,同时可以指定导出数据在Excel中的边框,字体,行高* 示例1* var ee = new Export2Excel();* ee.Export("tableId1");* 示例2* var ee = new Export2Excel();* ee.Export(id, function () {* ee.SetBorder(ee.DefaultBorder);* ee.SetFont({ Name: "宋体", Size: 14 });* ee.SetRowHeight(ee.DefaultRowHe 阅读全文
posted @ 2011-08-10 12:11 昔日醉离愁 阅读(1356) 评论(1) 推荐(0)