摘要:
wx.showLoading() 显示加载框,需要主动加 wx.hideLoading() 才能隐藏 样式: 示例代码: wx.showLoading({ title: '加载中', }) setTimeout(function () { wx.hideLoading() }, 2000) 阅读全文
摘要:
wx.shoModal() 模态弹窗 样式: 示例代码: wx.showModal({ title: '提示', content: '这是一个模态弹窗', success (res) { if (res.confirm) { console.log('用户点击确定') } else if (res. 阅读全文
摘要:
wx.showToast()样式: 示例代码: wx.showToast({ title: '成功', icon: 'success', duration: 2000 }) 阅读全文
摘要:
getLauchOprionsSync() 作用:获取小程序启动时的参数 使用位置:JS文件的任意位置 实例代码: console.log(wx.getLaunchOptionsSync()); 阅读全文