微信小程序

 

 

 

使用示例:

 

1. 开启“使用npm模块”

 

 

2. 新建 node_modules 文件夹

 

3. cd到新建 node_modules 所在的目录(非node_modules文件夹内

 

npm install miniprogram-datepicker --production

 

4. 开启npm构建

 

 

构建完成后,会在node_modules文件夹所在目录生成

 

 

5. 这时我们在index.json里面导入组件即可使用了

 

6. 使用实例

点击下载示例:小程序-使用npm包

 

原文地址:https://www.cnblogs.com/cisum/p/9811489.html