前端开发中会经常切换host,有时候会出现切换host在chrome中不生效的问题,可以用以下方式解决:
在chrome浏览器地址栏中输入chrome://net-internals/#sockets
点击Flush socket pools按钮(多点几次,直到下图绿框内内容为空就行)