let time = '2018-12-10 11:11:11'; let temporaryTime1 = new Date(time); this.setData({ timeRemain1: temporaryTime1, }) /* 利用正则表达式替换时间中的”-”为”/”即可 */ let time = '2018-12-10 11:11:11'; let temporaryTime = new Date(time.replace(/-/g,'/')); let temporaryTime1 = new Date(time); this.setData({ timeRemain: temporaryTime, timeRemain1: temporaryTime1, }) |
::-webkit-scrollbar{ width: 0; height: 0; color: transparent; } |
暂时遇到的兼容性就是这么多,会持续更新,若大家有遇到,可在评论区告知下,感谢
正在努力学习中,若对你的学习有帮助,留下你的印记呗(点个赞咯^_^)
往期好文推荐: