摘要: Vue.prototype.trim = function (str) { //删除左右两端的空格 return str.replace(/(^\s*)|(\s*$)/g, ""); } 阅读全文
posted @ 2018-05-18 09:50 风在吹,雪纷飞 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1.2018-08-01转日期格式 Vue.prototype.strToGmt = function (str) { let GMT = new Date(str) return GMT } 2.日期格式转2018-08-01 Vue.prototype.gmtToStr = function ( 阅读全文
posted @ 2018-05-18 09:49 风在吹,雪纷飞 阅读(122) 评论(0) 推荐(0) 编辑