Home  >  Q&A  >  body text

通过js获取到的时间是什么时间?

通过new Date()获取到的时间,是手机或电脑的系统时间,还是什么服务器上的时间?

如果跨了时区,手机还能获取到当地时间吗?


phpcn_u391phpcn_u3912808 days ago1073

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-10-01 00:15:17

    What is the time obtained through js? -PHP Chinese website Q&A-What is the time obtained through js? -PHP Chinese website Q&A

    Let’s take a look and learn.

    reply
    0
  • 阿神

    阿神2017-02-10 13:17:49

    当前计算机的时间、所以通常前台获取的时间都用处不大、用户可以改、不安全

    通常时间用于从后端传入、服务器的时间一定是统一的、解析时间戳

    reply
    0
  • Cancelreply