使用phonegaps gps函数返回的时间戳时,它看起来像这样:1369395556895.94。如何将其转换为实时? 最佳答案 如果您有一个包含GPS坐标的“位置”对象,请尝试以下方法:new Date(position.timestamp)