会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Amusement park flat by Lina
light丶
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
下一页
2022年5月6日
vue 使用npm下载three
摘要: 1、安装three.js npm install three 2、安装轨道控件插件 npm install three-orbit-controls 3、安装加载.obj和.mtl文件的插件 npm i --save three-obj-mtl-loader 4、安装渲染器插件 npm i --sa
阅读全文
posted @ 2022-05-06 16:08 light丶
阅读(1000)
评论(0)
推荐(0)
2022年3月22日
vue 使用swiper的异形轮播图
摘要: 官网效果图是这样的 一、我们需要在vue的public的html引入我们下载的css样式 <link rel="stylesheet" href="../src/assets/css/swiper.min.css"> 这个样式可以去官网下载 https://www.swiper.com.cn/dem
阅读全文
posted @ 2022-03-22 11:01 light丶
阅读(4255)
评论(0)
推荐(0)
vue 使用定位获取经伟度
摘要: 一、第一种方法使用百度定位 1.在public处放入 <script type="text/javascript"src="https://api.map.baidu.com/api?v=3.0&type=webgl&ak=您的密钥"></script> 密钥生成方法网上有许多 2.在方法里使用 l
阅读全文
posted @ 2022-03-22 10:37 light丶
阅读(4331)
评论(0)
推荐(0)
2022年3月3日
vue把demo生成图片
摘要: 1.在vue命令行下载依赖 npm install --save html2canvas 2.然后在需要使用的页面引入 import html2canvas from "html2canvas"; 3.在demo上添加ref 使其变成 我要转化为图片的区域 表示,我只要截取这个Div里面的内容变成图
阅读全文
posted @ 2022-03-03 14:43 light丶
阅读(468)
评论(0)
推荐(1)
vue把url生成二维码图片
摘要: 1.使用npm命令下载qrcode npm install qrcodejs2 --save 2.在需要使用的页面引入 import QRCode from "qrcode"; 然后在js事件里使用 //把url生成二维码 QRCode.toDataURL(url) //在这里拿到地址,把它赋值给d
阅读全文
posted @ 2022-03-03 14:31 light丶
阅读(1174)
评论(0)
推荐(0)
2022年2月15日
vue报错:sass-loader You may need to install it
摘要: 解决方案: 第一步:安装sass-loade npm install sass-loader --save-dev 第二步:安装 node-sass npm install node-sass --save-dev 按装好看有没有报错,如果报 说明是版本太高,我们重新删除,降一下版本就好了 打开pa
阅读全文
posted @ 2022-02-15 17:32 light丶
阅读(797)
评论(0)
推荐(0)
vue使用cube-ui(滴滴ui组件)
摘要: 官方文档:https://didi.github.io/cube-ui/#/zh-CN/docs/quick-start 根据文档我们要下载并按装相关的依赖,我们一步一步来 1.打开终端运行: npm install cube-ui --save 2.在package.json中的devDepend
阅读全文
posted @ 2022-02-15 17:19 light丶
阅读(1058)
评论(0)
推荐(0)
2022年1月26日
vue 跳转传参数据,刷新页面参数丢失
摘要: 在使用Vue的跳转页面并带参数过去,并刷新当前页面时,参数会丢失 这种情况可以先把值用转换 home页面 let ut_id = JSON.stringify(ut_id); this.$router.push({ path: "/About", query: { id: ut_id } }); A
阅读全文
posted @ 2022-01-26 11:38 light丶
阅读(797)
评论(0)
推荐(0)
2022年1月25日
vue 从a页面跳转到外部链接b页面,然后从b页面跳转到回a页面,返回没有执行生命周期
摘要: 返回后页面不刷新,一些失效的信息依然显示在页面上,生命周期全部没有执行, 在vue的mounted执行该方法 mounted() { //注意,这里一步,才可以执行methods生命周期里的方法 let that = this; //这个事件在用户浏览网页时触发,pageshow 事件类似于 onl
阅读全文
posted @ 2022-01-25 17:49 light丶
阅读(1883)
评论(0)
推荐(0)
2022年1月13日
vue h5怎么查看打印信息,
摘要: 一般我们开发时都会查看打印信息,来查找报错问题 但,如果是h5,在手机上是不可以像pc上的浏览器一样查看打印的。 使用腾讯的vConsole gitee地址:https://gitee.com/Tencent/vConsole github地址:https://github.com/Tencent/
阅读全文
posted @ 2022-01-13 10:44 light丶
阅读(250)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
下一页
公告