![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
从一点一滴开始微信小程序的开发
一吃就胖的
这个作者很懒,什么都没留下…
展开
-
微信小程序 获取input框内的数据 点击提交获取
微信小程序 获取input框内的数据 点击提交获取首先在xml <input class="right1" placeholder="请输入价格" value="{{shop.price}}" bindinput="goodprice"></input>这里的{{shop.price}} 是wx:for里面的值 也就是这个input输入框的值 value=“xxxxx”bindinput=“goodprice” 是你每次输入 或者每次触发这个输入框的时候 触原创 2020-09-01 11:57:50 · 4279 阅读 · 1 评论 -
微信小程序 获取wx:for 中下标的方法
微信小程序 获取wx:for 中下标的方法首先 要在wx:for 那个view里面写上wx:for-index=“名字自定义”那么这里 我的现在下标名字就是goodIndex<view wx:for="{{goodsList}}" wx:key="key" wx:for-index="goodIndex">然后在你触发事件的 地方 绑定data <view bindtap="deleteGood" data-goodId='{{item.goodId}}' data-ind原创 2020-08-31 20:11:33 · 3737 阅读 · 2 评论 -
微信小程序 <scroll-view>的滑动的问题
微信小程序 scroll-view的滑动的问题首先 <scroll-view>的样式(我这里随便设置的view)<scroll-view scroll-y="true" style="height: 300px"><view style="width:100px;height:100px;background-color:red">1111</view><view style="width:100px;height:100px;backgroun原创 2020-08-28 16:49:41 · 509 阅读 · 0 评论 -
微信小程序 swiper 无法自适应长度的问题
直接上代码xml<swiper current="{{currentData}}" class='swiper' style="height:{{winHeight}}px" duration="300" bindchange="bindchange"><!--第一个页面--><swiper-item style="height:100%;"><scroll-view style="height:400px;" scroll-y='true'>原创 2020-08-20 20:13:44 · 444 阅读 · 0 评论 -
微信小程序上传照片,可以覆盖运来的照片样式
微信小程序上传照片,可以覆盖运来的照片样式话不多说 直接上代码xml<view class="merch_img"> <view class="indentityCard"> <view class="identityCard_front" bindtap="frontimage"> <image src="{{idcard0}}" class="images"></image> <原创 2020-08-19 18:46:59 · 730 阅读 · 1 评论 -
微信小程序上下居中
再wxss里写 display: flex; align-items: center; justify-content: center; text-align: center;前三句是为了上下居中 第四句是水平居中。原创 2020-08-05 18:21:16 · 510 阅读 · 0 评论 -
微信小程序-实现textarea内自动计数已经最大值的问题
直接上代码xml<view class="textarea-news"><textarea placeholder="请输入内容" bindinput="getWords" auto-height name="textarea" maxlength='{{noteMaxLen}}'></textarea><view class='text-count-display f f-end'>{{noteNowLen}}/{{noteMaxLen}}<原创 2020-07-30 19:56:37 · 500 阅读 · 0 评论 -
微信小程序font-family中提供的十四种字体
微信小程序font-family中提供的十四种字体链接:https://blog.csdn.net/include_IT_dog/article/details/98382276转载 2020-07-28 19:09:52 · 18824 阅读 · 0 评论