05 2021 档案

摘要:给每个子元素添加 flex-shrink: 0; 父元素overflow:auto;实现子元素不压缩,超出宽度展示滚动条 阅读全文
posted @ 2021-05-31 16:23 还有什么值得拥有 阅读(220) 评论(0) 推荐(0) 编辑
摘要:父组件内 wx.ml <popup_window isAlert="{{isAlert}}" bind:changwindow="handleTap"></popup_window> 子组件内wx.ml <!-- 弹出框 --> <view class="cover" wx:if="{{isAler 阅读全文
posted @ 2021-05-28 15:16 还有什么值得拥有 阅读(51) 评论(0) 推荐(0) 编辑
摘要:index.wxml <view class="c_item" bindtap="getPublishDate"> <label for="name">截止时间</label> <input type="text" id="name" bin disabled="{{true}}" value="{ 阅读全文
posted @ 2021-05-28 14:30 还有什么值得拥有 阅读(102) 评论(0) 推荐(0) 编辑
摘要: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 还有什么值得拥有 阅读(1423) 评论(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 还有什么值得拥有 阅读(41) 评论(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 还有什么值得拥有 阅读(330) 评论(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 还有什么值得拥有 阅读(389) 评论(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 还有什么值得拥有 阅读(1205) 评论(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 还有什么值得拥有 阅读(225) 评论(0) 推荐(0) 编辑
摘要:1基础 JavaScript存在6种数据类型 number,string,undefined,boolean,null,object 强制转换方法 Number() Boolean() String() type of 操作符用来检测数据类型(只能用来精确的检测基本数据类型) console.log 阅读全文
posted @ 2021-05-10 01:06 还有什么值得拥有 阅读(49) 评论(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 还有什么值得拥有 阅读(120) 评论(0) 推荐(0) 编辑
摘要:pc端开发 先统一所有浏览器的样式 https://meyerweb.com/eric/tools/css/reset/ 安装react-cli npx create-react-app my-react-app 安装 axios yarn add axios --save axios的使用 及 r 阅读全文
posted @ 2021-05-07 19:59 还有什么值得拥有 阅读(76) 评论(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 还有什么值得拥有 阅读(386) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示