js
sweetanan888
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
document.elements.length的一个bug
页面中有多个NAME属性相同的INPUT元素,接收参数时候如何获取这些元素对象的value? function check(){ var es=document.forms["myform"].elements["text1"].length; if ( (typeof es) == 'undefined' ) es = 1; var e=document.forms[原创 2012-07-19 16:13:09 · 1865 阅读 · 0 评论 -
json对象
Insert title here //创建一个对象 function json1(){ var p = { name:'zs', age:22, info:function(){ alert('name:' + this.name); } } //alert(p); //alert(p.name + ' ' + p.age);原创 2012-07-20 14:00:14 · 437 阅读 · 0 评论 -
js把科学计数法表示的字符串转化为数值的方法
js把科学计数法表示的字符串转化为数值的方法,比较简单的办法如下 function doIt(){ var num = new Number("3.4556645445E7"); alert(num); }原创 2012-08-19 14:42:02 · 21467 阅读 · 1 评论 -
window.parent ,window.top,window.self详解
在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法打开当前窗口的那个窗口。 window.self 功能:是对当前窗口自身的引用。它和window属性是等价的。 语法:window.self 注:window、self、window转载 2013-06-08 15:25:08 · 670 阅读 · 0 评论 -
window.opener用法
window.opener 实际上就是通过window.open打开的窗体的父窗体。 比如在父窗体parentForm里面 通过 window.open("subForm.html"),那么在subform.html中 window.opener 就代表parentForm,可以通过这种方式设置父窗体的值或者调用js方法。 如:1,window.opener.test(); ---调用父窗体转载 2013-06-08 15:21:33 · 686 阅读 · 0 评论
分享