摘要:
<script setup lang="ts"> import {ref} from "vue"; const selectName = ref('技术指标及标准') const nacigation = ref([ '技术指标及标准', '文献著作', '报告模版', '专家库/项目库',])</ 阅读全文
摘要:
vue运行为v-on在监听键盘事件时,添加了特殊的键盘修饰符: <input v-on:keyup.13="submit"> vue还非常贴心地给出了常用按键的别名,这样就不必去记keyCode ~ ~ 上面代码,还可以在这样写: <input v-on:keyup.enter="submit"> 阅读全文
摘要:
<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- 阅读全文