会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Fate丶小光
博客园
首页
新随笔
联系
订阅
管理
2022年10月17日
uniapp滚动页面到一定的高度,导航栏的样式切换
摘要: onPageScroll(e) { let that = this; const query1= uni.createSelectorQuery().in(this); //获取盒子的高度 query1.select('#nav').boundingClientRect(data => { this
阅读全文
posted @ 2022-10-17 11:30 Fate丶小光
阅读(939)
评论(0)
推荐(0)
2022年6月5日
uniapp中请求接口问题
摘要: //GET-请求数据 getInfo(){ uni.request({ url: `${this.$baseUrl}/api-demo/getDemoById?lid=${lid}&page=${this.page}&pagesize=${this.pagesize}`, //这里的lid,page
阅读全文
posted @ 2022-06-05 17:15 Fate丶小光
阅读(892)
评论(0)
推荐(0)
2022年5月18日
使用js将HTML页面转成pdf
摘要: <script> $('#daochu').click(function () { html2canvas(document.getElementById('downPdf'),{ //此处的id为要打印的部分 onrendered:function(canvas){ var contentWidt
阅读全文
posted @ 2022-05-18 17:11 Fate丶小光
阅读(2992)
评论(0)
推荐(0)
2022年1月21日
uniapp上传功能
摘要: <avatar selWidth="200px" selHeight="400upx" @upload="myUpload" :avatarSrc="headimg" avatarStyle="width: 100%; height:300rpx;"> </avatar> https://ext.d
阅读全文
posted @ 2022-01-21 16:04 Fate丶小光
阅读(222)
评论(0)
推荐(0)
2022年1月18日
uni版分享H5
摘要: onShow(){ this.getData(this.id) // #ifdef H5 var that = this var jweixin = require('jweixin-module') //npm安装的引用 var surl = window.location.href; // va
阅读全文
posted @ 2022-01-18 16:24 Fate丶小光
阅读(72)
评论(0)
推荐(0)
公告