方法1.将index.js中的host的值改为‘0.0.0.0’ 方法2.修改package.json中script下dev的值,在后面加入--host 0.0.0.0 也可以解决 转载于:https://www.cnblogs.com/Bobo999/p/9443730.html