摘要: 窗口位置:var leftPos = (typeof window.screenLeft == "number") ? window.screenLeft : window.screenX;var topPos = (typeof window.screenTop == "number") ? wi... 阅读全文
posted @ 2014-12-05 16:40 lcw5945 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 用于存储和访问函数参数的参数对象公共属性:1. callee:Function 当前正在执行函数的引用。2. length:Number 参数数目。递归函数尽量采用arguments,防止函数名有变化,导致错误。function factorial(num){ if(num == 1) ... 阅读全文
posted @ 2014-12-05 13:40 lcw5945 阅读(151) 评论(0) 推荐(0) 编辑
摘要: var singleton = function(){ //私有 var priVar = 10; function priFun(){ return false; } //公有 return { publicProperty: tru... 阅读全文
posted @ 2014-12-05 10:58 lcw5945 阅读(81) 评论(0) 推荐(0) 编辑