上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: 选择器 :last-child /* 选择元素最后一个孩子 */ :first-child /* 选择元素第一个孩子 */ :nth-child(1) /* 按照第几个孩子给它设置样式 */ :nth-child(even) /* 按照偶数 */ :nth-child(odd) /* 按照奇数 */ 阅读全文
posted @ 2020-07-15 15:51 bingxiaoxiao 阅读(173) 评论(0) 推荐(0)
摘要: 1、语义化标签 <hrader></header> 定义了文档的头部区域 <footer></footer> 定义了文档的尾部区域 <nav></nav> 定义文档的导航 <section></section> 定义文档中的节(section、区段) <article></article>定义页面独 阅读全文
posted @ 2020-07-15 15:13 bingxiaoxiao 阅读(277) 评论(0) 推荐(0)
摘要: let index = e.currentTarget.dataset.index let array = [...this.data.list] array.splice(index,1) this.setData({ list:array }) 获取索引,定义一个新的数组,移除数据 splice 阅读全文
posted @ 2020-07-06 17:02 bingxiaoxiao 阅读(489) 评论(0) 推荐(0)
摘要: function getCaption(obj){ var index=obj.lastIndexOf("\-"); obj=obj.substring(index+1,obj.length); // console.log(obj); return obj; } var str="字符串截取(某个 阅读全文
posted @ 2020-07-06 14:57 bingxiaoxiao 阅读(25346) 评论(0) 推荐(0)
摘要: uni-app支持通过 HBuilderX可视化界面、vue-cli命令行两种方式快速创建项目。 1.通过 HBuilderX 可视化界面 可视化的方式比较简单,HBuilderX内置相关环境,开箱即用,无需配置nodejs。 开始之前,开发者需先下载安装如下工具:https://www.dclou 阅读全文
posted @ 2020-05-28 14:33 bingxiaoxiao 阅读(2152) 评论(0) 推荐(0)
摘要: //数组转数组对象let a = [1,2,3,4,5,66] let imgArray = []; a.forEach((item,index)=>{ imgArray.push({ picUrl:item }) }) console.log(imgArray) 数组对象中的某个属性值拼接成数组 阅读全文
posted @ 2020-05-27 15:55 bingxiaoxiao 阅读(3931) 评论(0) 推荐(0)
摘要: 情景:A、B、C 三个页面 , A是首页 B是列表页 C是详情页 A每次进入B页面B每次都要刷新, C每次返回B页面B都不刷新还在原来的位置 下面代码配置 1.app.vue <keep-alive>是Vue的内置组件,能在组件切换过程中将状态保留在内存中,防止重复渲染DOM。 <keep-aliv 阅读全文
posted @ 2020-04-13 17:45 bingxiaoxiao 阅读(2457) 评论(0) 推荐(0)
摘要: 1.<!-- catchtouchmove='{{true}}' 真机上不可滚动 --> <view class='tips' catchtouchmove='{{true}}'> <view class="modal_cover"></view> <view class="modal"> <ima 阅读全文
posted @ 2020-03-22 20:52 bingxiaoxiao 阅读(287) 评论(0) 推荐(0)
摘要: 一、建新数组,利用indexOf去重 function newArr(array){ //一个新的数组 var arrs = []; //遍历当前数组 for(var i = 0; i < array.length; i++){ //如果临时数组里没有当前数组的当前值,则把当前值push到新数组里面 阅读全文
posted @ 2020-03-22 20:47 bingxiaoxiao 阅读(236) 评论(0) 推荐(0)
摘要: <!-- --> <template> <div class="funGoodsArea"> <div class="fun-goods-box1"> <div class="fun-div1"> <img src="@/assets/img/fun-goods2.png" class="img-b 阅读全文
posted @ 2020-03-09 21:45 bingxiaoxiao 阅读(8014) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页