因为127.0.0.1是你本机默认的ip地址,而localhost是ip地址的一个映射

查看配置

C:\Windows\System32\drivers\etc\hosts

为什么web工程要输入localhost或者是127.0.0.1

当然你也可以配置其他的ip地址例如你把淘宝的ip地址配置如下图:你就再也访问不到淘宝了

为什么web工程要输入localhost或者是127.0.0.1

 

相关文章:

  • 2022-03-05
  • 2021-08-27
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-04-09
  • 2021-06-02
  • 2022-02-16
猜你喜欢
  • 2021-08-28
  • 2021-05-19
  • 2022-02-06
  • 2021-07-18
  • 2022-02-08
  • 2022-02-02
  • 2021-12-23
相关资源
相似解决方案