JavaScript中的TypedArray.toString()函数
toString()TypedArray对象的函数返回一个字符串,该字符串表示类型化数组的内容。
语法
其语法如下
typedArray.toString();
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var typedArray = new Int32Array([111, 56, 62, 40, 75, 36, 617, 2, 139, 827 ]);
var result = typedArray.toString();
document.write("Contents of the typed array: "+result);
</script>
</body>
</html>输出结果
Contents of the typed array: 111,56,62,40,75,36,617,2,139,827
热门推荐
10 新年祝福语简短的个性
11 剪简短的新年祝福语
12 七姐妹新春祝福语简短
13 分手快乐祝福语简短
14 同事们生日祝福语简短
15 二胎祝福语简短霸气
16 简短佛教新年祝福语大全
17 祝福语同事离职英文简短
18 送给同桌的祝福语简短