Warning: Massive error in json_encode()

前端 未结 3 1636
栀梦
栀梦 2021-01-19 05:29
  

Recieved in browser: [ \"1968401665333658496\"

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-19 05:57

    It's not just a JSON issue. If you put

    alert(1968401665333658496);
    

    in firebug console you get 1968401665333658600

    You're probably hitting the JS max value.

    There's a discussion on that here : What is JavaScript's highest integer value that a Number can go to without losing precision?

提交回复
热议问题