sIMD.toString

sIMD.toString

SIMD.js已经从TC39中取消了积极的开发,并从第三阶段中删除了。它不再被网页浏览器所追求。暴露在 web 上的SIMD 操作在 WebAssembly 中正处于积极的发展之中, 其操作基于 SIMD. js 操作。

SIMD.%type%.toString()方法返回一个String代表一个SIMD对象。

语法

SIMD.Float32x4.toString() SIMD.Float64x2.toString() SIMD.Int8x16.toString() SIMD.Int16x8.toString() SIMD.Int32x4.toString() SIMD.Uint8x16.toString() SIMD.Uint16x8.toString() SIMD.Uint32x4.toString() SIMD.Bool8x16.toString() SIMD.Bool16x8.toString() SIMD.Bool32x4.toString() SIMD.Bool64x2.toString()

返回值

String表示SIMD对象。

例子

Using toString() with a Float32x4

var a = SIMD.Float32x4(11, 22, 33, 44 a.toString( // "SIMD.Float32x4(11, 22, 33, 44)"

规范

SpecificationStatusComment
SIMDThe definition of 'SIMDConstructor.prototype.toString()' in that specification.DraftInitial definition.

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic supportNo supportNightly buildNo supportNo supportNo support

FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic supportNo supportNo supportNightly buildNo supportNo supportNo support