摘要:
/** * 获取屏幕宽高 */ Vue.prototype.getViewportSize = function(){ return { width: window.innerWidth || document.documentElement.clientWidth || document.body 阅读全文
posted @ 2020-07-09 17:32
缘琪梦
阅读(2462)
评论(0)
推荐(1)
摘要:
/** * 获取当前时间 * 格式YYYY-MM-DD */ Vue.prototype.getNowFormatDate = function() { var date = new Date(); var seperator1 = "-"; var year = date.getFullYear( 阅读全文
posted @ 2020-07-09 17:29
缘琪梦
阅读(3952)
评论(0)
推荐(0)