跳到主要内容
CodeWiki
练习
学习路径
学习方向
速查表
试验场
术语表
AI时代
搜索
⌘K
English
中文
练习
学习路径
学习方向
速查表
试验场
术语表
AI时代
English
中文
练习
/
测验
/
JavaScript
/
类型化数组与ArrayBuffer
哪个表达式能从任意packet视图的字节偏移1安全读取大端Uint32?
来自类型化数组与ArrayBuffer
Node 24
进阶
1分钟
哪个表达式能从任意packet视图的字节偏移1安全读取大端Uint32?
new DataView(packet.buffer, packet.byteOffset, packet.byteLength).getUint32(1, false)
new Uint32Array(packet.buffer, 1, 1)[0]
new DataView(packet.buffer).getUint32(1, true)
packet.slice(1, 5)[0]
检查
向AI询问这道练习
报告错误
下一道练习
两个数组会怎样输出这些越界值和小数?
预测输出
有新版本可用
重新加载