
72

Long.js源码分析与学习
source link: https://juejin.im/post/5a88e148f265da4e761fd400
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

背景 由于在项目中使用到了WebSocket的自定义二进制协议,需要将二进制转为后端服务中定义的Long型。而在JavaScript中的Number类型由于自身原因,并不能完全表示Long型的数字,因此需要我们通过其他的方式来对Long型值进行存储。 目标 在
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK