微信小程序
竹亦叶同
祸患常积于忽微,而智勇多困于所溺。
展开
-
小程序报错expect end-tag `input`., near `view`
源代码 <view class="a-listinput"> <input type="text" placeholder="请输入真实姓名"> </view> 修改为 <view class="a-listinput"> <input type="text" placeholder="请输入真实姓名"/> </view> input后面漏写了一个**/**..原创 2020-12-07 11:57:59 · 13690 阅读 · 2 评论 -
wxParse ;空格解析、&;解析不生效的解决方案
wxDiscode.js打开strcharacterDiscode函数原代码 str = str.replace(/ /g, ' '); str = str.replace(/&/g, '&'); 111 str = str.replace(/&nbsp;/g, ' '); str = str.replace(/ /g, ' '); str = str.r原创 2020-09-30 16:58:17 · 606 阅读 · 0 评论 -
小程序单选切换(按钮样式)
这里是展示图片wxml<view class="an-list" wx:for="{{anlist}}" wx:for-item="i" wx:key=""> <button class="{{currentTab==i.current?'active':''}}" bindtap="choicethis" data-current="{{i.current}}" style="width: 100%;">{{i.text}}</button>&l原创 2020-05-18 11:28:25 · 970 阅读 · 0 评论 -
小程序简单页面传参
父级页面html<view class="woods-content" wx:for="{{lists}}" wx:for-item='i' wx:key='lists' bindtap="todetail" data-img='{{i.img}}'> <text>{{i.name}}</text> <image src="{{i.img}}"...原创 2020-04-02 15:55:46 · 174 阅读 · 0 评论 -
个人小程序笔记(辅助专用)
动态修改页面标题setNavigationBarTitle{ "navigationBarTitleText": "个人中心"}原创 2020-03-24 09:20:47 · 342 阅读 · 0 评论 -
微信小程序坑之获取的接口数据返回的是callback({})
本人小白,在前几天写微信小程序的时候,后台给了个接口!我顺利的获取到了数据,然而令我懵逼的是获取的数据是这种情况……callback({"state":1,"message":"成功","content"[{"img":"d3579a1df58d4f229d01e2192fa381f8.jpg","proId":415,"id":1702,"type":"4","createDate":1567...原创 2019-10-04 14:14:33 · 2004 阅读 · 4 评论