摘要: function getCurrDate(time){ const date = new Date(time); const year = date.getFullYear(); const month = String(date.getMonth() + 1).padStart(2, '0'); 阅读全文
posted @ 2024-06-07 15:51 fxg 阅读(3) 评论(0) 推荐(0) 编辑
摘要: //示例1 const jsonString = '{"name":"John", "age":30, "city":"New York"}'; const jsonObject = JSON.parse(jsonString); console.log(jsonObject["name"]); / 阅读全文
posted @ 2024-06-07 11:54 fxg 阅读(1) 评论(0) 推荐(0) 编辑