![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
文章平均质量分 91
哈天奇不奇
这个作者很懒,什么都没留下…
展开
-
JavaScript DOM Demo
Example01<!DOCTYPE html><html><head><meta charset="UTF-8"><title>js_dom_demo</title><script type="text/javascript"> function原创 2012-06-10 21:52:58 · 109 阅读 · 0 评论 -
JSON.parse() & JSON.stringify()
原创转载请注明出处:http://agilestyle.iteye.com/blog/2352232 JSON.parse()Demo var str = '{"username":"nodejs", "password":"23"}';console.log(JSON.parse(str));Console Output JSON.stringify()...原创 2017-01-10 14:16:56 · 75 阅读 · 0 评论 -
JavaScript Object Properties —— Preventing Object Modification
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341901 Preventing Object ModificationWhen you want to lock down an object’s properties in some way, there are three different ways to do so. Pre...原创 2016-11-30 16:52:26 · 80 阅读 · 0 评论 -
JavaScript Object Properties —— Property attributes
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341900 Property attributesAll properties have several associated attributes. These attributes define how the properties work. Common Attributes...原创 2016-11-30 16:37:24 · 133 阅读 · 0 评论 -
JavaScript Object Properties —— Enumeration, Types of Properties
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341899 EnumerationAll object properties are enumerable by default, which means that they will appear in a for-in loop or be retrieved by Object.key...原创 2016-11-29 21:16:07 · 165 阅读 · 0 评论 -
JavaScript Object Properties —— Define, Detect, Remove
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341895 Defining PropertiesThere are two basic ways to create your own objects: using the Object constructor and using an object literal. For example...原创 2016-11-29 20:46:10 · 196 阅读 · 0 评论 -
JavaScript Object Methods
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341782 The this ObjectEvery scope in JavaScript has a this object that represents the calling object for the function. In the global scope, this rep...原创 2016-11-29 14:06:19 · 200 阅读 · 0 评论 -
JavaScript Function Overloading
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341742 Function OverloadingA function signature is made up of the function name plus the number and type of parameters the function expects. JavaScr...原创 2016-11-29 11:00:09 · 102 阅读 · 0 评论 -
JavaScript Function Declarations vs. Function Expressions
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341737 There are actually two literal forms of functions.The first is a function declaration, which begins with the function keyword and includes th...原创 2016-11-29 10:20:16 · 123 阅读 · 0 评论 -
JavaScript Primitive Wrapper Types
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341689 Primitive Wrapper TypesPerhaps one of the most confusing parts of JavaScript is the concept of primitive wrapper types. There are three primi...原创 2016-11-28 21:39:27 · 357 阅读 · 0 评论 -
JavaScript Primitive and Reference Types
原创转载请注明出处:http://agilestyle.iteye.com/blog/2341585 Although JavaScript has no concept of classes, it still uses two kinds of types: primitive and reference.Primitive types are stored as simple...原创 2016-11-28 15:03:48 · 360 阅读 · 0 评论 -
JavaScript Object-Oriented Programming -- Inheritance
The concept most often discussed in relation to OO programming is inheritance. Many OO languages support two types of inheritance: interface inheritance, where only the method signatures are inherit...原创 2012-06-14 05:23:41 · 114 阅读 · 0 评论 -
JavaScript Object-Oriented Programming -- Object Creation
The Factory PatternThe factory pattern is a well-known design pattern used in software engineering to abstract away the process of creating specific objects.function createPerson(name, age,...原创 2012-06-14 00:35:30 · 111 阅读 · 0 评论 -
JavaScript Functions
Functions are the core of any language, because they allow the encapsulation of statements that can be run anywhere and at any time. Functions in ECMAScript are declared using the function keywork, fo...原创 2012-06-11 20:07:36 · 62 阅读 · 0 评论 -
JS Typical Questions
原创转载请注明出处:http://agilestyle.iteye.com/blog/2370610 Scope(function() { var a = b = 5;})();console.log(a);console.log(b);ReferenceError: a is not defined5Note:a 被关键字var声明,说明 ...原创 2017-04-21 10:56:45 · 179 阅读 · 0 评论