`
ablya
  • 浏览: 26413 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
http://www.quackit.com/javascript/javascript_reserved_words.cfm You should avoid using these reserved words and keywords as function or variable names as JavaScript has reserved these words for its own use. JavaScript Reserved Words break continue do for import new this void case default e ...
1.document.write(""); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document->html->(head,body) 4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document) 5.得到表单中元素的名称和值:document.getElementById("表单中元素的ID号").name(或value) 6.一个小写转大写的JS: document.getElementById(&quo ...
FileSystemObject 对象 FileSystemObject(FSO) 对象模式包含下面的对象和集合。 对象/集合 描述 FileSystemObject 主对象。包含用来创建、删除和获得有关信息,以及通常用来操作驱动器、文件夹和文件的方法和属性。和该对象相关联的许多方法,与其他 FSO 对象中的方法完全相似;它们是为了方便才被提供的。 Drive 对象。包含用来收集信息的方法和属性,这些信息是关于连接在系统上的驱动器的,如驱动器的共享名和它有多少可用空间。请注意,"drive" 并非必须是硬盘,也可以是 CD-ROM 驱动器,RAM 磁盘等等 ...
Set fso = Server.CreateObject("Scripting.FileSystemObject") 定义FSO对象 fso.CreateFolder(Server.MapPath(folder)) 得到路径 Set fout = fso.CreateTextFile(Server.MapPath(filepath)) 定义创建对象 fout.WriteLine mb_code 创建文件夹。。 fout.close 关闭对象 下面是一些例子。。 提示:刚一开始看到有这样的功能,我也受骗了,以为真的可以通过浏览器在访问者的硬盘上 ...
http://anqli.iteye.com/blog/394078 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Ty ...
http://www.iteye.com/topic/178043 今天无意找到了很久前的js导出excel功能,用了一下感觉不错,在网上看很多人做js导出excel,可是对表格线的导出excel总是头疼,我这里有一个简单的导出js,大家可以看看。        这只是一个简单demo,首先静态页面 下面,调用js <script language=javascript> function preview() { window.clipboardData.setData("Text",document.all('table1').outerHTM ...
http://home.phpchina.com/space.php?uid=92279&do=blog&id=54762 最近学习JavaScript碰到了些问题,但还好,最终都解决了,现做一个简单的总结,望对大家有帮助。 1、首先碰到的是模态对话框刷新父窗口的问题,我只对知识点列举下: 使用window.open()弹出的弹出窗口,刷新父窗口 window.opener.location.reload() 使用window.showModalDialog弹出的模式窗口 window.dialogArguments.location.reload();其中dialog ...
IE:document.selection   FireFox:window.getSelection()   document.selection只有IE支持,window.getSelection()也只有FireFox和   Safari支持,都不是标准语法。 selection   对象       --------------------------------------------------------------------------------       代表了当前激活选中区,即高亮文本块,和/或文档中用户可执行某些操作的其它元素。    selection  ...
<script language="javascript" type="text/javascript"> /* object.OpenTextFile(filename[, iomode[, create[, format]]]) 参数 object 必选项。object 应为 FileSystemObject 的名称。 filename 必选项。指明要打开文件的字符串表达式。 iomode 可选项。可以是三个常数之一:ForReading 、 ForWriting 或 ForAppending 。 ...
用js保存页面指定内容 转自:  http://rorchina.iteye.com/blog/184425 <script language=javascript> function Save(){ var txt = document.all.output.value; b = window.open(); b.document.open(); b.document.write(txt); b.document.close(); b.document.execCommand('savea ...
在项目,要实现把页面中的一个Table保存到Excel中,代码如下: <html> <head> <title>保存HTML中的Table到Excel中</title> </head> <body> <h1>保存内容到Excel中</h1> <table id='content'> <tr><td>列1</td><td>列2</td></tr> ...
Global site tag (gtag.js) - Google Analytics