![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序笔记
微信小程序笔记
灰色冬季
可以于小 何谓于大
展开
-
微信小程序的跳转
//跳转1//跳转之后会有返回的上一页的按钮wx.navigateTo({url: '../index/index',})//跳转2//跳转之后返回的按钮就会变成 小房子的图标 意思就是返回到默认的首页wx.redirectTo({url: '../index/index',})如果跳转之后不想要有返回按钮在跳转到的那个页面的js文件中加上下面的代码 配合跳转2使用onShow: function() {wx.hideHomeButton({success: funct..原创 2021-07-22 18:24:41 · 161 阅读 · 0 评论 -
微信小程序的页面隐藏
点击一下 下面的页面隐藏起来<view bindfocus="show_so_input" /> </view>//将页面单独隐藏<view class="ment_top" wx:if="{{show_dibu}}"><view class="bottom_but" >首页</view><view class="bottom_but ">我的</view></view> sh...原创 2021-07-22 18:18:57 · 1848 阅读 · 0 评论 -
微信小程序带参数返回上一页
//首先在 要返回到的页面定义的data里定义参数data:{value_name:"",value_name1:""} //下面是返回上一页的代码 带上参数var ids = that.data.xuan_value; var name = that.data.xuan_value1; let pages = getCurrentPages(); let prvePage = pages[pages.length - 2] prvePage.setDa...原创 2021-07-22 18:15:27 · 629 阅读 · 0 评论 -
微信小程序的弹出提示消息笔记
//微信小程序弹出提示消息<view> <view > <input maxlength="12" type="text" bindblur='bindKeyInput_jp' /> </view> <view bindtap="jiangping"> <view class="_zf_...原创 2021-07-09 15:10:42 · 926 阅读 · 0 评论 -
微信小程序input标签的一些小功能 笔记
<view> <view > <!-- 搜索框 --> <input type="text" placeholder="{{sousuo_keyword}}" class='box1' bindblur='bindKeyInput' /> <view bindtap="aas">搜索</view> </view> <view >标签</view...原创 2021-07-07 11:30:59 · 107 阅读 · 0 评论