因為使用long.js,生成了一個int 64的數據,但是服務端希望是 uint 64的,問下有方法轉換嗎代碼:var lhVal = long.fromValue(newMsgIdFromTime)var lhVal1 = lhVal.shiftLeft(32)var lhVal2 = lhVal1.xor(time)var lhVal3 = lhVal2.negate()return lhVal3.toString()
js int 64 轉 uint 64的方法
郎朗坤
2019-03-01 17:26:49