会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wangmeihao
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
15
下一页
2022年11月7日
手机端等比例修改步骤
摘要: 1. 删除 <link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css"> <meta name="viewport" content="width=640, user-scalable=no, viewport
阅读全文
posted @ 2022-11-07 07:47 wangmeihao
阅读(81)
评论(0)
推荐(0)
2022年8月8日
随机颜色,加载loading效果,节流,应用周期函数,wxs
摘要: 随机颜色 data: { colorList:[] }, getColor(){ wx.request({ url: 'https://www.escook.cn/api/color', method:'GET', data:res//data重命名为res success:({data:res})
阅读全文
posted @ 2022-08-08 09:38 wangmeihao
阅读(144)
评论(0)
推荐(0)
2022年8月2日
下拉刷新,上拉触底(.js里自带)
摘要: <view>content值是{{cont}}</view> <button bindtap="add">+1</button> data: { cont:0 }, // 自增效果 add(){ this.setData({ cont:this.data.cont + 1 }) }, 下拉刷新数字归
阅读全文
posted @ 2022-08-02 09:01 wangmeihao
阅读(105)
评论(0)
推荐(0)
2022年8月1日
navigator跳转
摘要: navigator跳转 open-tab=“switchTab”/open-type=“navigate” <navigator url="/pages/list/list" open-type="navigate">跳转别的页面</navigator> 非tabbar页面 <navigator u
阅读全文
posted @ 2022-08-01 17:01 wangmeihao
阅读(265)
评论(0)
推荐(0)
2022年7月21日
下拉刷新 get请求 post请求 onLoad
摘要: "enablePullDownRefresh": true 下拉刷新之后背景颜色 "backgroundColor": "#efefef" 改变小点的颜色 "backgroundTextStyle":"dark", tabBar "tabBar":{ "list":[ { "pagePath": "
阅读全文
posted @ 2022-07-21 15:51 wangmeihao
阅读(67)
评论(0)
推荐(0)
微信小程序if for
摘要: 1.控制代码的显示隐藏 1.wx:if="{{}}"判断是否需要渲染代码 <view wx:if="{{tiaojian 1}}">显示1</view> <view wx:elif="{{tiaojian 2}}">显示2</view> <view wx:else>显示3</view> data:
阅读全文
posted @ 2022-07-21 11:57 wangmeihao
阅读(185)
评论(0)
推荐(0)
2022年7月19日
小程序
摘要: 1超出显示滚动条 <scroll-view class="container1" scroll-y> <view>A</view> </scroll-view> 2轮播图 <swiper class="swiper-content" indicator-dots> <swiper-item> <vi
阅读全文
posted @ 2022-07-19 16:27 wangmeihao
阅读(179)
评论(0)
推荐(0)
2022年5月9日
vscode 部分替换(正则替换)
摘要: 1. 数字 \d{n} 2. 数字和字母 [A-Za-z0-9]{n} 常用运算符与表达式 ^ 开始 () 域段 [] 包含,默认是一个字符长度 [^] 不包含,默认是一个字符长度 {n,m} 匹配长度? . 任何单个字符(. 字符点) | 或 \ 转义 $ 结尾 [A-Z] 26个大写字母 [a-
阅读全文
posted @ 2022-05-09 13:57 wangmeihao
阅读(524)
评论(0)
推荐(1)
2022年4月26日
遮罩DIV遮挡住下面元素 下面元素如何触发响应点击事件
摘要: 遮罩DIV{ pointer-events: none; }
阅读全文
posted @ 2022-04-26 10:58 wangmeihao
阅读(209)
评论(0)
推荐(0)
2022年4月3日
获取当前网址
摘要: 设置或获取对象指定的文件名或路径。window.location.pathname例:http://localhost:8086/topic/index?topicId=361alert(window.location.pathname); 则输出:/topic/index设置或获取整个 URL 为
阅读全文
posted @ 2022-04-03 10:42 wangmeihao
阅读(415)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
15
下一页
公告