cocos-nodejs-io-game/test.js
2022-12-05 22:02:24 +08:00

6 lines
122 B
JavaScript

const ab = new ArrayBuffer(10)
const view = new DataView(ab)
view.setFloat32(0, 0.0012)
console.log(view.getFloat32(0));