摘要: <script setup lang="ts"> import {ref} from "vue"; const selectName = ref('技术指标及标准') const nacigation = ref([ '技术指标及标准', '文献著作', '报告模版', '专家库/项目库',])</ 阅读全文
posted @ 2024-04-24 11:01 无泪的遗憾、愿我能 阅读(8) 评论(0) 推荐(0) 编辑
摘要: vue运行为v-on在监听键盘事件时,添加了特殊的键盘修饰符: <input v-on:keyup.13="submit"> vue还非常贴心地给出了常用按键的别名,这样就不必去记keyCode ~ ~ 上面代码,还可以在这样写: <input v-on:keyup.enter="submit"> 阅读全文
posted @ 2023-12-15 14:55 无泪的遗憾、愿我能 阅读(24) 评论(0) 推荐(0) 编辑
摘要: <nav> <div :class="{ 'menu-item': true, 'activity': index == selectMenuIndex }" v-for="(menuInfo,index) in menuList" :key="index" @click="handelMenuCl 阅读全文
posted @ 2023-11-28 17:30 无泪的遗憾、愿我能 阅读(349) 评论(0) 推荐(0) 编辑
摘要: refresh() { /* 浏览器标签页切换会触发"visibilitychange"事件*/ document.addEventListener('visibilitychange', e => { // 切换显示标签 if (document.visibilityState 'visible' 阅读全文
posted @ 2023-11-21 16:03 无泪的遗憾、愿我能 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 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: 阅读全文
posted @ 2023-11-21 11:27 无泪的遗憾、愿我能 阅读(50) 评论(0) 推荐(0) 编辑
摘要: directives: { enter: { bind(el, binding) { document.addEventListener('keyup', (event) => { if (event.keyCode 13) { binding.value() } }) } } }, v-enter 阅读全文
posted @ 2023-11-20 23:06 无泪的遗憾、愿我能 阅读(28) 评论(0) 推荐(0) 编辑
摘要: const arr = []this.todoLeftList.forEach((item) => { arr.push(item.srcSystemCode)})const index = arr.indexOf('zldc')if (index) { const first = this.tod 阅读全文
posted @ 2023-11-20 22:58 无泪的遗憾、愿我能 阅读(28) 评论(0) 推荐(0) 编辑
摘要: mounted(){ // 先调用initParam接口 再调用第二个接口 this.initParam().then((res)=>{ this.getDataList(); }) },// 1. 把方法挂载到全局 methods: { async initParam(){ const {code 阅读全文
posted @ 2023-11-18 13:38 无泪的遗憾、愿我能 阅读(89) 评论(0) 推荐(0) 编辑
摘要: background-image: url($img), linear-gradient(#f00, #f00);//也可以实现渐变 filter: grayscale(100%) hue-rotate(180deg) brightness(0.5) contrast(200%); img { mi 阅读全文
posted @ 2023-11-16 20:06 无泪的遗憾、愿我能 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 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- 阅读全文
posted @ 2023-11-06 19:08 无泪的遗憾、愿我能 阅读(20) 评论(0) 推荐(0) 编辑
浏览器标题切换
浏览器标题切换end
点击右上角即可分享
微信分享提示