![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Taro
iamyang0511
这个作者很懒,什么都没留下…
展开
-
Taro路由封装
Taro小程序路由跳转import Taro from '@tarojs/taro'// 打开新页面并跳转function navigateTo (url, params) { const paramsStr = handleParams(params) Taro.navigateTo({ url: url + paramsStr })}// 关闭当前页面并跳转新的页面function redirectTo (url, params) { const paramsS原创 2021-06-22 13:17:01 · 882 阅读 · 0 评论 -
Taro API封装
toast提示const showToast = title => { Taro.showToast({ title, mask: true, icon: 'none', duration: 2000, }).then(r => r)};加载提示const showLoading = (title= '加载中', mask = true) => { Taro.showLoading({ title, mask }).原创 2021-06-04 14:24:04 · 635 阅读 · 0 评论