会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
路西德
博客园
首页
新随笔
联系
订阅
管理
2020年10月12日
forEach 的使用
摘要: forEach() 方法用于调用数组的每个元素,并将元素传递给回调函数。 注意: forEach() 对于空数组是不会执行回调函数的。 var arr= ['小明','小红','小亮'] arr.forEach(function(element,index,array){ console.log(e
阅读全文
posted @ 2020-10-12 10:21 路西德
阅读(1010)
评论(0)
推荐(0)
2020年9月30日
小程序接入 快递订单查询
摘要: 1、在 app.json 中 "navigateToMiniProgramAppIdList":[ "wx6885acbedba59c14" ] 2、做个按钮,参数为快递订单号 <button catchtap="wuliu" data-expressNo="{{orderNoDetail.expr
阅读全文
posted @ 2020-09-30 14:09 路西德
阅读(812)
评论(1)
推荐(0)
微信小程序 简单接入客服功能
摘要: WXML 中 <button open-type="contact">联系客服</button> 然后在 微信小程序公众平台 => 功能 => 客服 => 添加 (微信账号) 最后在微信中 搜索小程序 【客服小助手】,就可以和用户对话了
阅读全文
posted @ 2020-09-30 14:05 路西德
阅读(1342)
评论(0)
推荐(0)
2020年9月27日
微信小程序 模糊搜索 功能
摘要: WXML 中 <view class="li l2"> <input id='searchInput' placeholder="请输入企业全称" type="text" bindinput="bindKeyInput" value="{{inputValue}}" data-statu="open
阅读全文
posted @ 2020-09-27 16:41 路西德
阅读(2709)
评论(0)
推荐(0)
微信小程序 页面跳转 的四种方法
摘要: 第一种:wx.navigateTo 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 wx.navigateBack 可以返回到原页面。小程序中页面栈最多十层。 官方文档:https://developers.weixin.qq.com/miniprogram/dev/a
阅读全文
posted @ 2020-09-27 16:15 路西德
阅读(6210)
评论(0)
推荐(0)
微信小程序 component组件的使用 以及 传值
摘要: 1、创建component组件 2、component.js 中的说明 Component({ /** * 组件的属性列表(对外属性),属性设置中可包含三个字段,type 表示属性类型、 value 表示属性初始值、 observer 表示属性值被更改时的响应函数 */ properties: {
阅读全文
posted @ 2020-09-27 11:43 路西德
阅读(11810)
评论(0)
推荐(1)
微信小程序 实现 获取验证码
摘要: WXML 中 <view class="get_yzm" hover-class="none" bindtap="getPhoneSmsByCode">{{limitGetSmsCode.content}}</view> JS 中 data: { phone: '', limitGetSmsCode
阅读全文
posted @ 2020-09-27 09:52 路西德
阅读(1382)
评论(0)
推荐(0)
2020年9月25日
微信小程序 封装 请求接口 方法
摘要: 1、在 utils 中创建 request.js 文件 2、在 request.js 文件中 const baseurl = 'https://api.zhiyedang.cn' const request = (url, options) => { return new Promise((reso
阅读全文
posted @ 2020-09-25 15:09 路西德
阅读(1500)
评论(0)
推荐(0)
微信小程序 弹窗
摘要: 1、一闪而过的提示窗 官方文档:https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showToast.html wx.showToast({ title: '保存成功', icon: 'none', dura
阅读全文
posted @ 2020-09-25 14:51 路西德
阅读(1054)
评论(0)
推荐(0)
微信小程序 设置tabBar
摘要: { "pages":[ "pages/home/home", "pages/mine/mine" ], "window":{ "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#37a7bf", "navigationBa
阅读全文
posted @ 2020-09-25 11:52 路西德
阅读(713)
评论(0)
推荐(0)
下一页
公告