出现这个问题是本地的小程序没有设置好引用的关系。 1、根据开发文档配置页面。 2、在小程序的app.json设置引用: 加入以下配置信息: "plugins" : { "myPlugin" : { "version" :