在static文件夹下新建config.js,里面写入公共ip地址 2.打开manifest.json,设置如下图 之后就有了template.h5.html文件 3.打开template.h5.html文件,引入config.js 4. 最后打包h5