JavaScript 中的 TypedArray.toString() 函数
TypedArray 对象的 toString() 函数返回一个表示类型化数组内容的字符串。
语法
它的语法如下
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
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP