ES5的新特性
2016-12-15 22:36:45 0 举报
AI智能生成
ES5的新特性
作者其他创作
大纲/内容
Object
getPrototypeOf(o)
getOwnpropertyDescriptor(o,p)
getOwnPropertyNames(o)
create
defineProperty(o,p,attrs)
defineProperties(o,props)
seal(o)
freeze(o)
preventExtensions(o)
isSealed(o)
isForzen(o)
isExtensible(o)
keys(o)
prototype.isPrototypeOf(v)
prototype.propertyIsEnumerable(p)
Array
isArray(a)
prototype.indexOf(e,i)
prototype.lastIndeOf(e,i)
prototype.every(t,c)
prototype.some(t,c)
prototype.forEach(f,c)
prototype.map(f,c)
prototype.filter(f,c)
prototype.reduce(r,v)
prototype.reduceRight(r,v)
Function
<h3 style="box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; font-size: 1.25em; font-weight: 600; line-height: 1.25; color: rgb(51, 51, 51); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";">prototype.bind(thisTarget, arg1,...argn)</h3>
String
prototype.trim
JSON
parse(text)
stringify(obj)
DATE
prototype.toLSOString
其他
<font color="#333333" face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"><span style="font-size: 16px;">放开了关键字不允许作为属性名的限制</span></font>
getter函数
setter函数
0 条评论
下一页