TypedArray.prototype.toString()
TypedArray
实例的 toString()
方法返回一个表示指定类型数组及其元素的字符串。该方法与 Array.prototype.toString()
的算法相同。
¥The toString()
method of TypedArray
instances returns a string representing the specified typed array and its elements. This method has the same algorithm as Array.prototype.toString()
.
Try it
语法
参数
返回值
描述
¥Description
详细信息请参见 Array.prototype.toString()
。此方法不是通用的,只能在类型化数组实例上调用。
¥See Array.prototype.toString()
for more details. This method is not generic and can only be called on typed array instances.
示例
将类型化数组转换为字符串
规范
Specification |
---|
ECMAScript Language Specification # sec-%typedarray%.prototype.tostring |
浏览器兼容性
BCD tables only load in the browser