將字符串’2019-02-05‘轉換成2019年2月5日

formDate() { let str = this.$user.userInfo.registerTime//一個字符串日期例如'2019-02-05' let regTimes = [] if (str) { regTimes = str.split('-') if (regTimes.length === 3) {
相關文章
相關標籤/搜索