
js
mohan_888
这个作者很懒,什么都没留下…
展开
-
JavaScript Location对象
location Location - WindowSummary Returns a Location object, which contains information about the URL of the document and provides methods for changing that URL. You can also assign to t转载 2012-12-24 10:15:11 · 394 阅读 · 0 评论 -
JavaScript top
top Window - WindowSummary Returns a reference to the topmost window in the window hierarchy. Syntax var topWindow = window.top; Notes Where the window.parent property returns t转载 2012-12-24 10:20:05 · 279 阅读 · 0 评论 -
document.createElement()的用法
document.createElement()是在对象中创建一个对象,要与appendChild() 或 insertBefore()方法联合使用。其中,appendChild() 方法在节点的子节点列表末添加新的子节点。insertBefore() 方法在节点的子节点列表任意位置插入新的节点。 下面,举例说明document.createElement()的用法。例转载 2012-12-26 14:46:50 · 300 阅读 · 0 评论 -
JavaScript arguments
js进行函数调用时,除了指定的参数外,还创建一个隐含的对象——arguments。一、arguments可以用arguments[index]这样的语法取值,拥有长度属性length。arguments对象存储的是实际传递给函数的参数,而不局限于函数声明所定义的参数列表,例如: function func(a,b){ alert(a); alert(b);转载 2012-12-27 10:56:16 · 443 阅读 · 0 评论 -
JavaScript Function详解
一、function概述 javascript中的函数不同于其他的语言,每个函数都是作为一个对象被维护和运行的。通过函数对象的性质,可以很方便的将一个函数赋值给一个变量或者将函数作为参数传递。 函数对象与其他用户所定义的对象有着本质的区别,这一类对象被称之为内部对象。内置对象的构造器是由JavaScript本身所定义的。二、function对象的创建 在JavaScri转载 2013-01-07 13:59:40 · 708 阅读 · 0 评论 -
JavaScript 对象定义
一,基本概念1,自定义对象。根据JS的对象扩展机制,用户可以自定义JS对象,这与Java语言有类似的地方。与自定义对象相对应的是JS标准对象,例如Date、Array、Math等等。2,原型(prototype)在JS中,这是一种创建对象属性和方法的方式,通过prototype可以为对象添加新的属性和方法。通过prototype我们可以为JS标准对象添加新的属性和方法,例如转载 2013-01-07 14:17:24 · 365 阅读 · 0 评论 -
javascript 中contentWindow和 frames
ie 中为 frames["id"]其他为document.getElementById("id").contentWindowcontentWindow属性是指指定的frame或者iframe所在的window对象在IE中iframe或者frame的contentWindow属性可以省略,但在Firefox中如果要对iframe对象进行编辑则必须指定contentWindow转载 2013-03-04 09:59:23 · 6363 阅读 · 0 评论 -
window.opener用法
window.opener 实际上就是通过window.open打开的窗体的父窗体。比如在父窗体parentForm里面 通过 window.open("subForm.html"),那么在subform.html中 window.opener就代表parentForm,可以通过这种方式设置父窗体的值或者调用js方法。如:1,window.opener.test(); --转载 2013-04-16 14:33:43 · 481 阅读 · 0 评论 -
JavaScript Math函数
原创 2013-05-21 15:11:39 · 574 阅读 · 0 评论