
javascript
furaoingqq
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Javascript Closure
Whenever you see the function keyword within another function, the inner function has access to variables in the outer function. function foo(x) { var tmp = 3; function bar(y) { alert(x转载 2015-01-27 14:51:06 · 682 阅读 · 0 评论 -
Obtaining the event object
Obtaining the event object Ilya Kantor W3C wayInternet Explorer wayCross-browser solution The inline variant Summary The event object is always passed to the handler and contains a lot转载 2014-11-21 11:50:27 · 423 阅读 · 0 评论 -
Javascript array object creation
var house_data=[]; house_data[0]=[132,13228,20000]; house_data[1]=[148,13487,30000]; house_data[2]=[122,13499,40000]; var parameter=new Array(); parameter[0]=[0,0,0]; parameter[1]=[0,0,0];原创 2014-11-20 13:16:40 · 361 阅读 · 0 评论 -
Google JavaScript Style Guide[chajn2.28 != me2.64
Google JavaScript Style Guide[chajn2.28 != me2.64] 分类: JavaScript2013-02-02 21:19 188人阅读 评论(0) 收藏 举报 目录(?)[+] 导读:最近一直苦恼各个项目已有代码(PHP、JS、HTML、CSS等)的维护成本——可读性实在是太差了,所以,在一边完成工作的时候,就转载 2014-11-24 13:28:08 · 394 阅读 · 0 评论 -
Python "Attribute" Definition
By the way, I use the word attribute for any name following a dot — for example, in the expression z.real, real is an attribute of the objectz. Strictly speaking, references to names in modules转载 2014-11-21 11:10:29 · 530 阅读 · 0 评论 -
Javascript: How to enumerate property of an object ?
for(var propertyName in myObject) { // propertyName is what you want // you can get the value like this: myObject[propertyName] } Now, you will not get private variables this way because they原创 2014-11-20 11:19:09 · 488 阅读 · 0 评论 -
Javascript Prototype Attribute
定义和用法 prototype 属性使您有能力向对象添加属性和方法。 语法 object.prototype.name=value 实例 在本例中,我们将展示如何使用 prototype 属性来向对象添加属性: function employee(name,job,born) { this.name=name; this.job=job; this.born=b转载 2014-11-20 14:19:31 · 422 阅读 · 0 评论 -
Attribute v.s. Property
In HTML / Javascript the terms get confused because the HTML representation of a DOM element hasattributes (that being the term used in XML for the key/value pairs contained within a tag) but when r转载 2014-11-21 10:58:19 · 502 阅读 · 0 评论 -
How JavaScript Timers Work
At a fundamental level it’s important to understand how JavaScript timers work. Often times they behave unintuitively because of the single thread which they are in. Let’s start by examining the three转载 2015-01-27 18:52:27 · 504 阅读 · 0 评论 -
ECMAScript Standard: Function Declaration
Defined functions are not required to have their declarations appear textually before calls to them.原创 2015-01-13 13:15:51 · 278 阅读 · 0 评论