连接真机后运行了,服务器已经打开了。
控制台打印的结果:
正在建立手机连接...
正在同步手机端程序文件...
828 KB/s (5093 bytes in 0.006s)
正在启动HBuilder调试基座...
应用myapp已启动...
Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
已经自行解决,原来是打包后的应用程序的获取后端数据的接口地址应该改成局域网的ip