摘要: window.btoa() 遇到中文要出问题 localStorage.setItem("token",window.btoa(unescape(encodeURIComponent(UDATA["uid"]+"#START_AC#"+UDATA["uaccount"]+"#END_AC#"+"#S 阅读全文
posted @ 2024-01-14 23:51 萌狼蓝天 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 问题如图 想让时间显示为自己想要的格式,可以自己编写一个函数 const formatDate= (timestamp)=> { const date = new Date(timestamp); const year = date.getFullYear(); const month = Stri 阅读全文
posted @ 2024-01-14 23:18 萌狼蓝天 阅读(42) 评论(0) 推荐(0) 编辑