A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join below:

TypedArray.prototype.join() - JavaScript | MDN

TypedArray.prototype.join()

Baseline Widely available

join() 方法将数组中所有元素连接为一个字符串。这个方法的算法和 Array.prototype.join() 相同。TypedArray 是这里的类型化数组类型之一。

语法 参数
separator

可选。指定分隔每个元素的字符串。分隔符按需转换为字符串。如果没有,类型化数组的元素会以逗号 (",") 分隔。

返回值

所有元素连接后的字符串。

示例
var uint8 = new Uint8Array([1, 2, 3]);
uint8.join(); // '1,2,3'
uint8.join(" / "); // '1 / 2 / 3'
uint8.join(""); // '123'
规范 浏览器兼容性 参见

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4