会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Bing-haha
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
下一页
2020年7月9日
vue使用element实现折叠面板---菜单的折叠与展开
摘要: 参考: https://www.jianshu.com/p/0ceef28f99f2 实现效果: 实现步骤: 1、vuex中menu.js minLeftMenuWidth: 35, // 折叠时左侧菜单的宽度 maxLeftMenuWidth: 180, // 展开时左侧菜单的宽度 const t
阅读全文
posted @ 2020-07-09 16:05 haha-uu
阅读(36714)
评论(0)
推荐(0)
2020年7月7日
js获取浏览器基本信息:document.body.clientWidth/clientHeight/scrollWidth/scrollTop。
摘要: 参考: https://www.cnblogs.com/pengcc/p/4126687.html 图解参考: https://blog.csdn.net/mxclsh/article/details/84853854
阅读全文
posted @ 2020-07-07 16:04 haha-uu
阅读(186)
评论(0)
推荐(0)
vue中如何使用i18n实现国际化 以及 登录成功后切换语言
摘要: 参考: https://www.jianshu.com/p/4b96919e3622 https://blog.csdn.net/joyce_lcy/article/details/78840371(内容全) 一:使用i18n 1、在src目录下建立文件夹:lang 2、en.js: const z
阅读全文
posted @ 2020-07-07 11:07 haha-uu
阅读(660)
评论(0)
推荐(0)
2020年7月6日
vue【路由导航守卫控制访问主页前先登录】--实现用户登录及token验证----以及使用NProgress
摘要: 参考: 实现用户登录及token验证: https://blog.csdn.net/qzcrystal/article/details/106884810 https://www.cnblogs.com/tt-ff/p/11736463.html NProgress使用参考: https://blo
阅读全文
posted @ 2020-07-06 10:25 haha-uu
阅读(614)
评论(0)
推荐(0)
2020年6月29日
推荐一款视频控件xgplayer
摘要: 转载:https://www.jianshu.com/p/d207a94eed87 xgplayer github: https://github.com/bytedance/xgplayer 文档地址:http://h5player.bytedance.com/en/ 对于video标签,我们一查
阅读全文
posted @ 2020-06-29 16:06 haha-uu
阅读(2361)
评论(0)
推荐(0)
2020年6月28日
vue-router切换时loading效果实现
摘要: 实现原理 1. 可以在vuex中维护一个isLoading 的变量 2. 在 router.beforeEach 钩子中 设置 isLoading = true , 在 router.afterEach 中 设置 isLoading = false Vuex: actions.js: export
阅读全文
posted @ 2020-06-28 16:53 haha-uu
阅读(4383)
评论(0)
推荐(1)
2020年6月23日
Vue使用修饰符实现按下enter键触发事件
摘要: DOM:input <el-input @click.native="onClickInput" @input="onInput" @keypress.native.enter="onEnterPress" placeholder="搜索" prefix-icon="el-icon-search"
阅读全文
posted @ 2020-06-23 16:54 haha-uu
阅读(12204)
评论(0)
推荐(1)
一些情况的布尔值
摘要: var a = new Boolean(""); // false var b = new Boolean("a"); // true var c = new Boolean(0); // false var c2 = new Boolean(1); // true var d = new Bool
阅读全文
posted @ 2020-06-23 14:42 haha-uu
阅读(167)
评论(0)
推荐(0)
使用cookie实现历史搜索记录功能
摘要: 在学习网易云音乐项目的时候,有一个历史搜索记录的功能, 就是你点击的关键词被记录下来,然后显示在搜索历史记录里; 主要实现方法: 项目中使用的是 'good-storage' : https://www.npmjs.com/package/good-storage 1、npm i good-stor
阅读全文
posted @ 2020-06-23 11:32 haha-uu
阅读(1369)
评论(0)
推荐(0)
2020年6月22日
<el-input></el-input>输入框获取与失去焦点事件
摘要: //1.定义focus事,绑定属性 <el-input v-model="headerInput" @focus="onInputFocus" @blur="onInputBlur":style="thisStyle"> </el-input> thisStyle:'',//2.获得焦点事件 onI
阅读全文
posted @ 2020-06-22 18:21 haha-uu
阅读(18259)
评论(0)
推荐(1)
上一页
1
···
9
10
11
12
13
14
15
16
17
下一页
公告