11 2023 档案
摘要:<nav> <div :class="{ 'menu-item': true, 'activity': index == selectMenuIndex }" v-for="(menuInfo,index) in menuList" :key="index" @click="handelMenuCl
阅读全文
摘要:refresh() { /* 浏览器标签页切换会触发"visibilitychange"事件*/ document.addEventListener('visibilitychange', e => { // 切换显示标签 if (document.visibilityState 'visible'
阅读全文
摘要:configureWebpack: { // provide the app's title in webpack's name field, so that // it can be accessed in index.html to inject the correct title. name:
阅读全文
摘要:directives: { enter: { bind(el, binding) { document.addEventListener('keyup', (event) => { if (event.keyCode 13) { binding.value() } }) } } }, v-enter
阅读全文
摘要:const arr = []this.todoLeftList.forEach((item) => { arr.push(item.srcSystemCode)})const index = arr.indexOf('zldc')if (index) { const first = this.tod
阅读全文
摘要:mounted(){ // 先调用initParam接口 再调用第二个接口 this.initParam().then((res)=>{ this.getDataList(); }) },// 1. 把方法挂载到全局 methods: { async initParam(){ const {code
阅读全文
摘要:background-image: url($img), linear-gradient(#f00, #f00);//也可以实现渐变 filter: grayscale(100%) hue-rotate(180deg) brightness(0.5) contrast(200%); img { mi
阅读全文
摘要:let data = [ {id: 2, time: '2019-04-26 10:53:19'}, {id: 4, time: '2019-04-26 10:51:19'}, {id: 1, time: '2019-04-26 11:04:32'}, {id: 3, time: '2019-04-
阅读全文