小程序
精哥哥yxkj5558
人生就是一个连点成线的过程,有些经历也许一开始看不到它的意义所在,但也许若干年后便会发挥其特有的作用。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
微信最新的获取头像昵称
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html <view class="container"> <view class="userinfo"> <block wx:if="{{!hasUserInfo}}"> <button wx:if="{{canIUseGetUserProfile}}"原创 2021-07-23 01:23:51 · 1179 阅读 · 0 评论 -
小程序post请求数据错误(没有添加header)
小程序post请求数据错误(没有添加header)header: { 'content-type': 'application/x-www-form-urlencoded;charset=utf-8', },如果没有添加urlencode的话,一些特别的字符会出错。加上这行,会对所有变量进行urlencode在服务端端也要进行urldecode...原创 2018-03-16 12:09:19 · 2289 阅读 · 0 评论 -
小程序 if else
<view wx:if="{{loginInfo.is_login}}"> 登陆的 内容 </view> <view wx:elif="{{loginInfo}}" class="order-logout"> 不登录的内容 </view>原创 2019-01-03 20:56:50 · 2646 阅读 · 0 评论 -
微信小程序的商品详情html转小程序语法
加强: //对img添加额外数据 if (node.tag === 'img') { if (node.attr.src.indexOf("http") == -1){ node.imgIndex = results.images.length; var imgUrl = "http://www....原创 2019-07-22 15:33:37 · 551 阅读 · 0 评论 -
超好看的小程序UI
地址: https://wux-weapp.github.io/wux-weapp-docs/#/introduce 预览:原创 2019-08-11 23:09:40 · 2735 阅读 · 1 评论 -
小程序水平居中、垂直居中
display: flex; justify-content: center; 当display: flex配合justify-content: center使用时可以让view水平居中原创 2019-08-11 23:26:18 · 933 阅读 · 0 评论 -
关掉小程序控制台的索引情况提示
"description": "项目配置文件。", "setting": { "urlCheck": true, "es6": true, "postcss": true, "minified": true, "newFeature": true, "checkSiteMap": false } 注:sitemap的索引提示是默认开启的,如需...原创 2019-08-11 23:28:18 · 2301 阅读 · 0 评论
分享