摘要: 参考: https://www.cnblogs.com/pengcc/p/4126687.html 图解参考: https://blog.csdn.net/mxclsh/article/details/84853854 阅读全文
posted @ 2020-07-07 16:04 haha-uu 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 参考: 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 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 参考: 实现用户登录及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 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 转载: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 阅读(2247) 评论(0) 推荐(0) 编辑
摘要: 实现原理 1. 可以在vuex中维护一个isLoading 的变量 2. 在 router.beforeEach 钩子中 设置 isLoading = true , 在 router.afterEach 中 设置 isLoading = false Vuex: actions.js: export 阅读全文
posted @ 2020-06-28 16:53 haha-uu 阅读(4044) 评论(0) 推荐(1) 编辑
摘要: 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 阅读(12167) 评论(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 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 在学习网易云音乐项目的时候,有一个历史搜索记录的功能, 就是你点击的关键词被记录下来,然后显示在搜索历史记录里; 主要实现方法: 项目中使用的是 'good-storage' : https://www.npmjs.com/package/good-storage 1、npm i good-stor 阅读全文
posted @ 2020-06-23 11:32 haha-uu 阅读(1306) 评论(0) 推荐(0) 编辑
摘要: //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 阅读(17585) 评论(0) 推荐(1) 编辑
摘要: 用第三方组件或者UI框架会自带自身封装的事件,如keyup等,会覆盖原生的组件而无法起效果 .native 修饰符就是用来注册元素的原生事件而不是组件自定义事件的 如elementUI的:<el-input v-model="QueryText" placeholder="可输入如ab34" id= 阅读全文
posted @ 2020-06-22 17:48 haha-uu 阅读(432) 评论(0) 推荐(0) 编辑