摘要: 1.组件的JS添加配置 2.组件的wxml写法: 3.调用的页面 4.调用页面的wxss: 由于小程序的限制必须使用 !important 阅读全文
posted @ 2019-06-17 15:17 博客小鹏鹏 阅读(1162) 评论(0) 推荐(0) 编辑
摘要: 1.父组件(wxml页面)向子组件传递 在子组件中定义需要传入的属性 在页面中使用,举个栗子 2.子组件向页面传递值 页面中调用: 阅读全文
posted @ 2019-06-17 11:39 博客小鹏鹏 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 话不多说直接上代码,清爽易懂: 阅读全文
posted @ 2019-06-17 11:15 博客小鹏鹏 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 1.继上一篇文章中的观察者模式 2.在需要使用的页面中调用 阅读全文
posted @ 2019-06-17 11:13 博客小鹏鹏 阅读(1037) 评论(3) 推荐(1) 编辑
摘要: 1.新建publishtion.js 2.实现监听者类 3.在调用的地方继承监听者类 4.发布消息 在类内部预设需要发布的消息种类,如图发布的是newDevice类目下的消息 5.在对应页面调用 阅读全文
posted @ 2019-06-17 11:11 博客小鹏鹏 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: 直接看:https://www.jianshu.com/p/b22c9e075931 阅读全文
posted @ 2019-06-17 11:05 博客小鹏鹏 阅读(668) 评论(0) 推荐(0) 编辑
摘要: let param = {} param[`array[${index}].lock`] = event.detail this.setData(param) this.setData({ ["elementStyle.submitButtonClass"]: "button_sumbit button_sumbith" }... 阅读全文
posted @ 2019-06-17 11:03 博客小鹏鹏 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 前端经典面试:https://github.com/Wscats/CV/issues/13 包含时间复杂度:https://blog.csdn.net/gane_cheng/article/details/52652705 阅读全文
posted @ 2019-06-01 13:29 博客小鹏鹏 阅读(132) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000012806637 阅读全文
posted @ 2019-05-23 19:47 博客小鹏鹏 阅读(178) 评论(0) 推荐(0) 编辑
摘要: https://jingyan.baidu.com/article/ae97a646d936ddbbfd461d02.html 阅读全文
posted @ 2019-05-10 01:36 博客小鹏鹏 阅读(281) 评论(0) 推荐(0) 编辑