微信小程序自定义组件

 

1、创建组件

2、编写wxml文件

3、写样式

 

4、dialog.js

5、引入组件index.json

 

6、父组件index.js

 7、使用组件

 

posted @ 2018-03-13 15:13  浮生如梦似离殇  阅读(225)  评论(0编辑  收藏  举报