1.可以通过 File --> Setting,搜索 deployment 点击 + 号

webstorm预览时把浏览器地址localhost改成IP

2.然后输入一个名称,选择:Local or mounted folder,点击 OK

webstorm预览时把浏览器地址localhost改成IP

3.接下来选择你的本地项目路径,我的是在E:\ ,输入你的本机IP,选择 Mappings 标签 设置红框里的本地项目路径,最后点击 OK

webstorm预览时把浏览器地址localhost改成IP

webstorm预览时把浏览器地址localhost改成IP

4.再次用WebStorm预览

webstorm预览时把浏览器地址localhost改成IP

5.我们可以看到浏览器地址栏的地址已经是IP了

webstorm预览时把浏览器地址localhost改成IP

 

 

引用:https://blog.csdn.net/u010874036/article/details/51472274

相关文章:

  • 2022-12-23
  • 2021-07-13
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2021-11-26
  • 2021-06-26
猜你喜欢
  • 2021-09-27
  • 2021-09-26
  • 2021-07-15
  • 2021-04-11
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案