We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extends
undefined
Symbol
该函数的 "length" 属性值为 1.
该函数的 "length" 属性值为 1。
初始值为 %String.prototype%
属性描述符为 { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }
String.raw`\n` // \n '\n' // 回车符 `\n` // 回车符 String.raw({ raw: 'test' }, 0, 1, 2); // 't0e1s2t' String.raw({ a: 'test' }); // 报错
String 迭代器属于 普通对象。继承 %StringIteratorPrototype% 固有对象的属性。还有以下列出的内置插槽:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
文本处理:String对象一:构造器上的属性
String构造器
extends
子句的值。打算继承指定的 String 行为的子类构造函数必须包括对 String 构造函数的 super 调用,以创建和初始化具有内置插槽 [[StringData]] 的子类实例。String ( value )
undefined
且 value 是Symbol
类型,返回 SymbolDescriptiveString(value)undefined
,返回 sString构造器上的属性
String.fromCharCode ( ...codeUnits )
该函数的 "length" 属性值为 1.
String.fromCodePoint ( ...codePoints )
该函数的 "length" 属性值为 1。
String.prototype
初始值为 %String.prototype%
属性描述符为
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }
String.raw()
String实例上的属性
length
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }
String迭代器对象
CreateStringIterator ( string )
%StringIteratorPrototype% 对象
String 迭代器实例上的属性
String 迭代器属于 普通对象。继承 %StringIteratorPrototype% 固有对象的属性。还有以下列出的内置插槽:
The text was updated successfully, but these errors were encountered: