上一页 1 2 3 4 5 6 ··· 24 下一页
摘要: data:定义的变量是项目的全局变量 data中return:定义的变量只在当前组件中使用 data外: 阅读全文
posted @ 2022-12-09 22:31 怪咖咖 阅读(1076) 评论(0) 推荐(0) 编辑
摘要: id使用必须单一,不能用于使用id拆分后做其他判断,会为系统的升级带来很大麻烦 阅读全文
posted @ 2022-09-28 12:05 怪咖咖 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-13 17:25 怪咖咖 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 往数组前面添加元素,然后渲染列表时,需要有除了索引以外的一个主键值来当key,不然渲染失败 阅读全文
posted @ 2021-11-09 15:55 怪咖咖 阅读(585) 评论(0) 推荐(1) 编辑
摘要: let date = new Date() for (let m = 1; m < 13; m++) { let num = new Date(date.getFullYear(), m, 0).getDate(); for (let i = 1; i < num + 1; i++) { //再把天 阅读全文
posted @ 2021-05-24 23:01 怪咖咖 阅读(668) 评论(1) 推荐(0) 编辑
摘要: formatTime(msTime) { let time = msTime / 1000; let minute = (Math.floor(time / 60) % 60) > 9 ? (Math.floor(time / 60) % 60) : '0' + (Math.floor(time / 阅读全文
posted @ 2021-04-13 22:14 怪咖咖 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-27 19:02 怪咖咖 阅读(2811) 评论(0) 推荐(0) 编辑
摘要: 数字 0,如果0有特殊业务意义,可以设置为 undefined为初始值; 字符串 ''; 对象:一般为null,也可以视具体情况而定,比如{}; 数组: 视具体情况而定,也可null 阅读全文
posted @ 2020-12-27 16:52 怪咖咖 阅读(335) 评论(0) 推荐(0) 编辑
摘要: => 阅读全文
posted @ 2020-12-27 16:50 怪咖咖 阅读(252) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> .weizhu_yuanzhu { position: relative; width: 50px; height: 10rem; background: #FFF; margin: 30px auto; z-index: 999; border-le 阅读全文
posted @ 2020-10-31 09:59 怪咖咖 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 24 下一页