jjzjj

getAuthResponse

全部标签

javascript - FB.getAuthResponse().expiresIn 的单位是什么?

当我在FacebookJavaScriptAPI中执行此操作时:FB.getLoginStatus(function(response){console.log(response.authResponse.expiresIn);});我得到一个整数,比如5184000。那是什么时候?单位是什么?什么时代?它显然不是自1970年以来的毫秒数。如何将其转换为JavaScript中的日期? 最佳答案 这是以秒为单位的到期时间。相当于60天。为了转换成日期读here. 关于javascript-