Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
phpで行うように、jqueryでタイムスタンプを取得する方法を探していましたtime()(1970年1月1日からの秒数)。
time()
を試してみevent.timeStampましたが、9 で始まる 9 桁が出力されました。これは間違っていることがわかっています。
event.timeStamp
jquery.now() を使用 http://jsbin.com/icesab/edit#javascript,html
これを試して:
Math.floor(+new Date() / 1000)