随笔分类 -  微信小程序

关于微信小程序遇到的问题及解答
摘要:wx.ml <view class="single_word {{item.show?'word_active':'word_noactive'}}" wx:for="{{arr}}" wx:key="{{this}}" data-index="{{index}}" bindtap="wordSho 阅读全文
posted @ 2021-05-28 13:42 还有什么值得拥有 阅读(1483) 评论(0) 推荐(0)
摘要:api:wx.setClipboardData({ data:Data, success(res){ console.log(res) }, fail(res){ console.log(res) } }) wx.ml <view catchtap='copywxtap' data-password 阅读全文
posted @ 2021-05-27 10:46 还有什么值得拥有 阅读(46) 评论(0) 推荐(0)
摘要:H5 PC <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conte 阅读全文
posted @ 2021-05-18 14:39 还有什么值得拥有 阅读(346) 评论(0) 推荐(0)
摘要:问题 十三课正常显示 十四颗 就会自动换行 修改后 直接在JS中拿到数据替换到&nbsp;换成\t 就可以解决了 for (let i = 0; i < data.length; i++) { data[i].name=data[i].name.replace(/&nbsp;/ig,'\t') } 阅读全文
posted @ 2021-05-13 10:33 还有什么值得拥有 阅读(411) 评论(0) 推荐(0)
摘要:要在js中获取checkbox选择值 必须在外面包裹一个checkbox-group wxml 代码 <scroll-view class="s_view" scroll-y="true"> <block wx:for="{{list}}" wx:key="{{this}}"> <view clas 阅读全文
posted @ 2021-05-12 15:23 还有什么值得拥有 阅读(1273) 评论(0) 推荐(0)
摘要:主要2点 1 scroll-view 设置 scroll-x="true" style="width:100%" white-space:nowrap; 2 子元素 设置 display:inline-block; index.wxml <scroll-view scroll-x="true" cl 阅读全文
posted @ 2021-05-11 17:37 还有什么值得拥有 阅读(252) 评论(0) 推荐(0)
摘要:原始数据 menu=[ {id: "13", price: "22", title: "南洋鸡肉卷套餐", sales: "36", img: "13.jpg",num:0}, {id: "14", price: "23", title: "菠萝鸡腿堡套餐", sales: "38", img: " 阅读全文
posted @ 2021-05-08 15:37 还有什么值得拥有 阅读(133) 评论(0) 推荐(0)
摘要:/*checkbox 整体大小 */ checkbox { width: 34rpx; height: 34rpx; margin-top:7.5rpx; margin-right:24rpx; } /*checkbox 选项框大小 */ checkbox .wx-checkbox-input { 阅读全文
posted @ 2021-05-06 15:36 还有什么值得拥有 阅读(436) 评论(0) 推荐(0)