会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
蠡li
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2021年9月15日
uni-app条件编译,json文件配置的坑
摘要:
阅读全文
posted @ 2021-09-15 16:35 蠡li
阅读(298)
评论(0)
推荐(0)
2021年8月25日
封装下拉列表,替换select和option
摘要: option不能设置高度和样式,封装一个下拉列表替换select和option <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width
阅读全文
posted @ 2021-08-25 14:26 蠡li
阅读(246)
评论(0)
推荐(0)
2021年8月18日
小程序 请求request, ajax封装
摘要: let baseUrl= 'https://www.baidu.com' function request (url, method, data, head, dataType, doSuccess, doFail, doComplete) { let header = {}; if (head =
阅读全文
posted @ 2021-08-18 12:04 蠡li
阅读(114)
评论(0)
推荐(0)
2021年8月17日
微信小程序,获取组件的高度width、宽度height、id、left、right、top、bottom等信息
摘要: hideShFn() { var query = wx.createSelectorQuery(); query.select('.enterP_01100').boundingClientRect(rect => { if (rect.height > 60) { this.setData({ h
阅读全文
posted @ 2021-08-17 16:32 蠡li
阅读(1361)
评论(1)
推荐(0)
2021年8月10日
js 图片转base64上传图片
摘要: <input type="file" class="upload"><img src="" alt="" id="viewimg"> <script src="home/javascripts/jquery-3.2.1.min-1.js"></script><script> $(".upload")
阅读全文
posted @ 2021-08-10 10:03 蠡li
阅读(661)
评论(0)
推荐(0)
2021年8月9日
小程序 分享之后,从分享点进去 input里面中文值被转化成字符,需再转化成中文方法
摘要: var searchValue=decodeURI(this.data.searchValue) this.setData({ searchValue }) decodeURI() 函数可对 encodeURI() 函数编码过的 URI 进行解码。decodeURI(URIstring) //URI
阅读全文
posted @ 2021-08-09 17:19 蠡li
阅读(64)
评论(0)
推荐(0)
2021年7月22日
uni-app map组件的marker
摘要: <template> <view> <page-head :title="title"></page-head> <view class="uni-common-mt"> <view> <map :latitude="latitude" :longitude="longitude" :markers
阅读全文
posted @ 2021-07-22 11:20 蠡li
阅读(3194)
评论(0)
推荐(0)
2021年7月21日
将小程序的API封装成支持Promise的API
摘要: /** * 将小程序的API封装成支持Promise的API * @params fn {Function} 小程序原始API,如wx.login */ const wxPromisify = fn => { return function (obj = {}) { return new Promi
阅读全文
posted @ 2021-07-21 16:32 蠡li
阅读(111)
评论(0)
推荐(0)
微信小程序实现导航功能的操作步骤
摘要: https://www.jb51.net/article/207290.htm 1、申请腾讯地图key——地址 http://lbs.qq.com/dev/console/application/mine 2、小程序后台添加腾讯插件——开发文档 https://lbs.qq.com/miniProg
阅读全文
posted @ 2021-07-21 11:22 蠡li
阅读(832)
评论(1)
推荐(0)
微信小程序朋友转发和朋友圈分享
摘要: onShareAppMessage: function () { return { "title": ‘标题' } }, onShareTimeline: function () { return { "title": '标题' } }
阅读全文
posted @ 2021-07-21 09:16 蠡li
阅读(55)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告