微信小程序app.json里plugins的provider属性要求与 项目project.config.json的appid相同,为什么还要填provider呢,插件取不到project.config.json吗?不同项目中,相同微信小程序与不同插件的组合还得修改微信小程序的配置,感觉好麻烦。


微信小程序开发问题解答
微信小程序开发者回答:
因为 miniprogram 目录设计上就刚好是一个引用这个插件的普通微信小程序代码。普通微信小程序代码引用这个插件时就需要填 provider 。所以这里也要填 provider 。
本文网址:http://www.91bianli.com/weixinxiaochengxu/214.html