bang590 / JSPatch

JSPatch bridge Objective-C and Javascript using the Objective-C runtime. You can call any Objective-C class and method in JavaScript by just including a small engine. JSPatch is generally used to hotfix iOS App.
MIT License
11.37k stars 2.24k forks source link

请教unsigned long long 长整型 在 js 上的精度问题如何解决? #869

Open Jack-Wu-Ai opened 3 years ago

Jack-Wu-Ai commented 3 years ago

在jspatch 里遇到 unsigned long long 变量的话会产生问题,后面几位数会设置成零或者不正确的数,请教下如何解决这个问题,这个属于js 原生问题,不知道jspatch有没解决这个问题的办法。

freshbird commented 2 years ago

在oc层面把数字转成字符串使用