How to convert a String to long in javascript?

前端 未结 2 1548
难免孤独
难免孤独 2020-12-01 02:21

I have a millisecond timestamp that I need to convert from a String to long. Javascript has a parseInt but not a parseLong. So how can I do this?

2条回答
  •  一生所求
    2020-12-01 03:02

    It's because there is no long in javascript.

    http://javascript.about.com/od/reference/g/rlong.htm

提交回复
热议问题