I have a moment object and I do like
let formatted = momentObj.format("YYYY-MM-DDTHH:mmZ");
yet, the output is "2017-08-02A01:00+00:00" instaed of expected "2017-08-02T01:00Z"
Anyone got a clue?
您需要像这样逃避T&Z:
let formatted = momentObj.format("YYYY-MM-DD[T]HH:mm[Z]");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.