07 2021 档案

摘要:1、vue <div ref="element"></div> // 获取高度值 (内容高+padding+边框) this.$refs.element.offsetHeight; //获取样式值(带px) window.getComputedStyle(this.$refs.element).he 阅读全文
posted @ 2021-07-29 11:19 (⊙o⊙)买噶 阅读(3475) 评论(0) 推荐(0) 编辑
摘要:1、配置vue.config.js devServer: { port: port, // open: true, overlay: { warnings: false, errors: true }, proxy: { '/device': { target: 'http://xx.xx.xxx. 阅读全文
posted @ 2021-07-19 16:21 (⊙o⊙)买噶 阅读(325) 评论(0) 推荐(0) 编辑
摘要:不能用cnpm下载要用npm下载,因为cnpm是淘宝镜像很多包都是快捷方式。这个就是缺包的解决方案。 可以使用npm下载,或者cnpm install --by=npm问题解决 阅读全文
posted @ 2021-07-18 18:20 (⊙o⊙)买噶 阅读(866) 评论(0) 推荐(0) 编辑
摘要:1、 watch:{ $route(to,from){ console.log(to.path); } }, 2、 watch: { $route: { handler: function(val, oldVal){ console.log(val); }, // 深度观察监听 deep: true 阅读全文
posted @ 2021-07-16 08:45 (⊙o⊙)买噶 阅读(252) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示