toJSON ();. 当将对象序列化为JSON 时,如果有 Moment 对象,则它会将被解释为ISO8601 字符串,并调整到UTC。 JSON.stringify({ postDate : moment() }); ...
確定! 回上一頁