上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: main.js中: Vue.prototype.$EventBus = new Vue(); //全局的事件总线 任何组件 2.触发全局事件 this.$EventBus.$emit("abudaren", {num: 4}); 任何组件<br>3 监听事件 this.$EventBus.$on(" 阅读全文
posted @ 2021-10-09 17:13 枫若 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 1.从其他项目跳转到本项目,在本项目下获取项目跳转来源url document.referrer 但是也有不可使用的情况 直接在浏览器地址栏中输入地址; 使用location.reload()刷新(location.href或者location.replace()刷新有信息); 在微信对话框中,点击 阅读全文
posted @ 2021-09-03 10:29 枫若 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 安装插件Vetur,Regex Previewer,Pretty Formatter,Path Intellisense,ESLint,chinese,beautify //setting.js文件 { "emmet.triggerExpansionOnTab": true, "emmet.incl 阅读全文
posted @ 2021-08-14 16:20 枫若 阅读(594) 评论(0) 推荐(0) 编辑
摘要: https://www.kungmu.cn/82737.html https://www.snswhy.com/archives/1059.html 阅读全文
posted @ 2021-08-09 15:09 枫若 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 安装node: https://blog.csdn.net/jiangyu1013/article/details/80980765 安装pm2:npm install pm2 -g npm install报错,解决:npm i node-sass --sass_binary_site=https: 阅读全文
posted @ 2021-08-04 15:11 枫若 阅读(271) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/tg928600774/article/details/105021517 阅读全文
posted @ 2021-07-31 15:18 枫若 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.jb51.net/article/146257.htm 在Vue做项目时,做了一个div[contenteditable=true]的组件作为a56爆大奖在线娱乐输入框 在非手动输入值后,光标会丢失,经测试以下这段代码可用,直接将光标定位到最后 function keepLastI 阅读全文
posted @ 2021-07-31 11:30 枫若 阅读(1512) 评论(0) 推荐(0) 编辑
摘要: 原文/wind-lanyan/p/7899428.html 官网https://cn.vuejs.org/v2/guide/components-custom-events.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BB%8 阅读全文
posted @ 2021-07-31 10:54 枫若 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 原文/zigood/p/12504401.html 摘要: 打包的时候开启gzip可以很大程度减少包的大小,非常适合于上线部署。更小的体积对于用户体验来说 就意味着更快的加载速度以及更好的用户体验。 Vue-cli3.0项目 安装依赖:compressi 阅读全文
posted @ 2021-07-27 15:25 枫若 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 原文/scode2/p/9098579.html 首先,a56爆大奖在线娱乐开发是以 vue 为技术栈,a56爆大奖在线娱乐如题用的国际化插件是 vue-i18n,附上 github 传送门。 1、a56爆大奖在线娱乐们得先有开发环境,先有项目跑起来,a56爆大奖在线娱乐推荐如果是喜欢用 vue 的小伙伴,可以尝试 vue 阅读全文
posted @ 2021-07-26 17:52 枫若 阅读(468) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页