JS prototype constructor转载之五
来源:互联网 发布:尼特消防主机怎么编程 编辑:程序博客网 时间:2024/06/07 07:21
http://www.cnblogs.com/z-lib/archive/2010/08/12/1797860.html
js三刀:constructor属性,valueOf(),toSTring
15.2.1 The Object Constructor Called as a Function
When Object is called as a function rather than as a constructor, it performs a type conversion.
15.3.3 Properties of the Function Constructor
The Function constructor is itself a Function object and its [[Class]] is "Function". The value of the [[Prototype]] internal property of the Function constructor is the standard built-in Function prototype object (15.3.4).
/** valueOf函数:返回指定对象的原始值。
* 对象返回值
Array数组的元素被转换为字符串,这些字符串由逗号分隔,连接在一起。其操作与 Array.toString 和 Array.join 方法相同。
BooleanBoolean 值。
Date存储的时间是从 1970 年 1 月 1 日午夜开始计的毫秒数 UTC。
Function函数本身。
Number数字值。
Object对象本身。这是默认情况。String字符串值。
* */
/** toString函数:是返回对象的字符串表示
* 对象操作
Array将 Array 的元素转换为字符串。结果字符串由逗号分隔,且连接起来。
Boolean如果 Boolean 值是 true,则返回 “true”。否则,返回 “false”。
Date返回日期的文字表示法。Error返回一个包含相关错误消息的字符串。
Function返回如下格式的字符串,其中 functionname 是被调用 toString 方法函数的名称: function functionname( ) { [native code] }Number返回数字的文字表示。
String返回 String 对象的值。
默认返回 “[object objectname]”,其中 objectname 是对象类型的名称。
*/
- JS prototype constructor转载之五
- JS prototype constructor转载之二
- JS prototype constructor转载之三
- JS prototype constructor转载之四
- JS prototype constructor转载之六
- JS Prototype constructor 转载之一
- js老生常谈之this,constructor ,prototype
- js老生常谈之this,constructor ,prototype
- js老生常谈之this,constructor ,prototype
- <转载>Js中Prototype、__proto__、Constructor、Object、Function关系介绍
- js constructor和prototype
- js中的prototype与constructor
- js中的prototype和constructor
- js中的constructor 和prototype
- js 中的this,constructor ,prototype
- js中的constructor和prototype
- js中的constructor与prototype
- js中的prototype和constructor
- JS prototype constructor转载之三
- UIKeyboard键盘相关知识点-IOS开发
- iBatis动态SQL标签用法
- php编码规范(未完待续)
- JS prototype constructor转载之四
- JS prototype constructor转载之五
- googleMap 谷歌地图
- Javascript this指针详解
- [乐意黎原创] JAVA对ArrayList排序
- JS prototype constructor转载之六
- 十六周任务1
- 学习使用DirectX
- 写在前面
- javascript中的Array对象属性和方法整理