摘要: 定义在vue的methods中, loadMenus已被钩子函数调用 app.alltimes是五个剩余的时间,每个都需要递减,单位是毫秒 注意开启倒计时用setInterval,关闭倒计时用clearInterval var app = new Vue({ el: '#app', data() { 阅读全文
posted @ 2021-01-27 17:06 wuzi2333 阅读(249) 评论(0) 推荐(0)
摘要: //将毫秒转换成时分秒 timedown:function(num) { var oneSecond = 1000; var oneMinute=oneSecond*60; var oneHour=oneMinute*60 //小时 var hours =Math.floor(num/oneHour 阅读全文
posted @ 2021-01-27 16:50 wuzi2333 阅读(298) 评论(0) 推荐(0)
摘要: Vue中的 :class 和 :style 1. :class = “a” 说明 vue 中有个叫 a 的属性 这个标签的class 就是 a的值 2. :class = “{ active:isactive }” Active的存在取决于 isactive的值,为true就说明存在,为false就 阅读全文
posted @ 2021-01-27 16:16 wuzi2333 阅读(1049) 评论(0) 推荐(0)
摘要: moment.min.js的内容为 !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define( 阅读全文
posted @ 2021-01-27 15:14 wuzi2333 阅读(211) 评论(0) 推荐(0)