会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
无泪的遗憾、愿我能
博客园
首页
新随笔
联系
订阅
管理
2024年4月24日
vue tab切换滑动门
摘要: <script setup lang="ts"> import {ref} from "vue"; const selectName = ref('技术指标及标准') const nacigation = ref([ '技术指标及标准', '文献著作', '报告模版', '专家库/项目库',])</
阅读全文
posted @ 2024-04-24 11:01 无泪的遗憾、愿我能
阅读(9)
评论(0)
推荐(0)
2023年12月15日
vue 监听键盘回车事件 @keyup.enter || @keyup.enter.native
摘要: vue运行为v-on在监听键盘事件时,添加了特殊的键盘修饰符: <input v-on:keyup.13="submit"> vue还非常贴心地给出了常用按键的别名,这样就不必去记keyCode ~ ~ 上面代码,还可以在这样写: <input v-on:keyup.enter="submit">
阅读全文
posted @ 2023-12-15 14:55 无泪的遗憾、愿我能
阅读(30)
评论(0)
推荐(0)
2023年11月28日
【css】反向圆角,效果类似于谷歌浏览器的tab
摘要: <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 无泪的遗憾、愿我能
阅读(420)
评论(0)
推荐(0)
2023年11月21日
浏览器标签页切换获取数据
摘要: refresh() { /* 浏览器标签页切换会触发"visibilitychange"事件*/ document.addEventListener('visibilitychange', e => { // 切换显示标签 if (document.visibilityState 'visible'
阅读全文
posted @ 2023-11-21 16:03 无泪的遗憾、愿我能
阅读(9)
评论(0)
推荐(0)
Vue 项目每次发版后要清理浏览器缓存 问题
摘要: 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 无泪的遗憾、愿我能
阅读(52)
评论(0)
推荐(0)
2023年11月20日
vue自定义指令按enter键触发事件
摘要: directives: { enter: { bind(el, binding) { document.addEventListener('keyup', (event) => { if (event.keyCode 13) { binding.value() } }) } } }, v-enter
阅读全文
posted @ 2023-11-20 23:06 无泪的遗憾、愿我能
阅读(33)
评论(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 无泪的遗憾、愿我能
阅读(29)
评论(0)
推荐(0)
2023年11月18日
vue调用完一个接口 全局中才调用另外N个接口
摘要: mounted(){ // 先调用initParam接口 再调用第二个接口 this.initParam().then((res)=>{ this.getDataList(); }) },// 1. 把方法挂载到全局 methods: { async initParam(){ const {code
阅读全文
posted @ 2023-11-18 13:38 无泪的遗憾、愿我能
阅读(91)
评论(0)
推荐(0)
2023年11月16日
css改变图片的颜色
摘要: 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 无泪的遗憾、愿我能
阅读(105)
评论(0)
推荐(0)
2023年11月6日
js日期排序
摘要: 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 无泪的遗憾、愿我能
阅读(24)
评论(0)
推荐(0)
下一页
公告
浏览器标题切换
浏览器标题切换end
点击右上角即可分享