07 2020 档案

摘要:用cancas画名片 涉及到技术 原型头像、文字超出换行、字体大小颜色、背景图wxml 页面内容 <view class="pages"> <canvas canvas-id="shareKapian" style="width:{{width}}px;height:{{height}}px;">< 阅读全文
posted @ 2020-07-24 16:45 bingxiaoxiao 阅读(522) 评论(0) 推荐(0) 编辑
摘要:选择器 :last-child /* 选择元素最后一个孩子 */ :first-child /* 选择元素第一个孩子 */ :nth-child(1) /* 按照第几个孩子给它设置样式 */ :nth-child(even) /* 按照偶数 */ :nth-child(odd) /* 按照奇数 */ 阅读全文
posted @ 2020-07-15 15:51 bingxiaoxiao 阅读(167) 评论(0) 推荐(0) 编辑
摘要:1、语义化标签 <hrader></header> 定义了文档的头部区域 <footer></footer> 定义了文档的尾部区域 <nav></nav> 定义文档的导航 <section></section> 定义文档中的节(section、区段) <article></article>定义页面独 阅读全文
posted @ 2020-07-15 15:13 bingxiaoxiao 阅读(269) 评论(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 阅读(484) 评论(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 阅读(25220) 评论(0) 推荐(0) 编辑

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