为了账号安全,请及时绑定邮箱和手机立即绑定

浏览本地网页为何是file:///

浏览本地网页为何是file:///

//img2.sycdn.imooc.com/59f3dc0600012e5d03010034.jpg

为何 file:  后面是3个斜杠不是2个斜杠?

为何其他协议如ftp:// http:// https:// 后面都是2个斜杠,就file要3个斜杠?

查看完整描述

4 回答

已采纳
?
Samaritan

TA贡献63条经验 获得超39个赞

标准 url

scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]

本地文件没有 host,就直接省略了,只剩下最后的斜线后就是路径,看起来就是三个连起来了

查看完整回答
2 反对 回复 2017-10-31
?
慕的地8582982

TA贡献92条经验 获得超0个赞

https://www.imooc.com/wenda/detail/353418

https://www.imooc.com/wenda/detail/354268

https://www.imooc.com/wenda/detail/334335

https://www.imooc.com/wenda/detail/353634

https://www.imooc.com/wenda/detail/334660

https://www.imooc.com/wenda/detail/335747

https://www.imooc.com/wenda/detail/350729

https://www.imooc.com/wenda/detail/354574

https://www.imooc.com/wenda/detail/333539

https://www.imooc.com/wenda/detail/344004

https://www.imooc.com/wenda/detail/355720

https://www.imooc.com/wenda/detail/336727

https://www.imooc.com/wenda/detail/345254

https://www.imooc.com/wenda/detail/350944

https://www.imooc.com/wenda/detail/354849

https://www.imooc.com/wenda/detail/342183

https://www.imooc.com/wenda/detail/335818

https://www.imooc.com/wenda/detail/340594

https://www.imooc.com/wenda/detail/353433

https://www.imooc.com/wenda/detail/337666

https://www.imooc.com/wenda/detail/347994

https://www.imooc.com/wenda/detail/346257

https://www.imooc.com/wenda/detail/346964

https://www.imooc.com/wenda/detail/352516

https://www.imooc.com/wenda/detail/332047

https://www.imooc.com/wenda/detail/345459

https://www.imooc.com/wenda/detail/355099

https://www.imooc.com/wenda/detail/352428

https://www.imooc.com/wenda/detail/343771

https://www.imooc.com/wenda/detail/345963

https://www.imooc.com/wenda/detail/354395

https://www.imooc.com/wenda/detail/355196

https://www.imooc.com/wenda/detail/339814

https://www.imooc.com/wenda/detail/342307

https://www.imooc.com/wenda/detail/354980

https://www.imooc.com/wenda/detail/355491

https://www.imooc.com/wenda/detail/345147

https://www.imooc.com/wenda/detail/332020

https://www.imooc.com/wenda/detail/349437

https://www.imooc.com/wenda/detail/333903

https://www.imooc.com/wenda/detail/344693

https://www.imooc.com/wenda/detail/351997

https://www.imooc.com/wenda/detail/351307

https://www.imooc.com/wenda/detail/334552

https://www.imooc.com/wenda/detail/351461

https://www.imooc.com/wenda/detail/347653

https://www.imooc.com/wenda/detail/334642

https://www.imooc.com/wenda/detail/334704

https://www.imooc.com/wenda/detail/338965

https://www.imooc.com/wenda/detail/340559

https://www.imooc.com/wenda/detail/351671

https://www.imooc.com/wenda/detail/344049

https://www.imooc.com/wenda/detail/347518

https://www.imooc.com/wenda/detail/350943

https://www.imooc.com/wenda/detail/347967

https://www.imooc.com/wenda/detail/336624

https://www.imooc.com/wenda/detail/332155

https://www.imooc.com/wenda/detail/342962

https://www.imooc.com/wenda/detail/335926

https://www.imooc.com/wenda/detail/336386

https://www.imooc.com/wenda/detail/335836

https://www.imooc.com/wenda/detail/348922

https://www.imooc.com/wenda/detail/356071

https://www.imooc.com/wenda/detail/348765

https://www.imooc.com/wenda/detail/344034

https://www.imooc.com/wenda/detail/339020

https://www.imooc.com/wenda/detail/346734

https://www.imooc.com/wenda/detail/334446

https://www.imooc.com/wenda/detail/353598

https://www.imooc.com/wenda/detail/353935

https://www.imooc.com/wenda/detail/337673

https://www.imooc.com/wenda/detail/348403

https://www.imooc.com/wenda/detail/351039

https://www.imooc.com/wenda/detail/341215

https://www.imooc.com/wenda/detail/333874

https://www.imooc.com/wenda/detail/335393

https://www.imooc.com/wenda/detail/340493

https://www.imooc.com/wenda/detail/337650

https://www.imooc.com/wenda/detail/342707

https://www.imooc.com/wenda/detail/347320

查看完整回答
反对 回复 2021-10-22
?
慕田峪6141110

TA贡献70条经验 获得超0个赞

https://www.imooc.com/wenda/detail/353418

https://www.imooc.com/wenda/detail/354268

https://www.imooc.com/wenda/detail/334335

https://www.imooc.com/wenda/detail/353634

https://www.imooc.com/wenda/detail/334660

https://www.imooc.com/wenda/detail/335747

https://www.imooc.com/wenda/detail/350729

https://www.imooc.com/wenda/detail/354574

https://www.imooc.com/wenda/detail/333539

https://www.imooc.com/wenda/detail/344004

https://www.imooc.com/wenda/detail/355720

https://www.imooc.com/wenda/detail/336727

https://www.imooc.com/wenda/detail/345254

https://www.imooc.com/wenda/detail/350944

https://www.imooc.com/wenda/detail/354849

https://www.imooc.com/wenda/detail/342183

https://www.imooc.com/wenda/detail/335818

https://www.imooc.com/wenda/detail/340594

https://www.imooc.com/wenda/detail/353433

https://www.imooc.com/wenda/detail/337666

https://www.imooc.com/wenda/detail/347994

https://www.imooc.com/wenda/detail/346257

https://www.imooc.com/wenda/detail/346964

https://www.imooc.com/wenda/detail/352516

https://www.imooc.com/wenda/detail/332047

https://www.imooc.com/wenda/detail/345459

https://www.imooc.com/wenda/detail/355099

https://www.imooc.com/wenda/detail/352428

https://www.imooc.com/wenda/detail/343771

https://www.imooc.com/wenda/detail/345963

https://www.imooc.com/wenda/detail/354395

https://www.imooc.com/wenda/detail/355196

https://www.imooc.com/wenda/detail/339814

https://www.imooc.com/wenda/detail/342307

https://www.imooc.com/wenda/detail/354980

https://www.imooc.com/wenda/detail/355491

https://www.imooc.com/wenda/detail/345147

https://www.imooc.com/wenda/detail/332020

https://www.imooc.com/wenda/detail/349437

https://www.imooc.com/wenda/detail/333903

https://www.imooc.com/wenda/detail/344693

https://www.imooc.com/wenda/detail/351997

https://www.imooc.com/wenda/detail/351307

https://www.imooc.com/wenda/detail/334552

https://www.imooc.com/wenda/detail/351461

https://www.imooc.com/wenda/detail/347653

https://www.imooc.com/wenda/detail/334642

https://www.imooc.com/wenda/detail/334704

https://www.imooc.com/wenda/detail/338965

https://www.imooc.com/wenda/detail/340559

https://www.imooc.com/wenda/detail/351671

https://www.imooc.com/wenda/detail/344049

https://www.imooc.com/wenda/detail/347518

https://www.imooc.com/wenda/detail/350943

https://www.imooc.com/wenda/detail/347967

https://www.imooc.com/wenda/detail/336624

https://www.imooc.com/wenda/detail/332155

https://www.imooc.com/wenda/detail/342962

https://www.imooc.com/wenda/detail/335926

https://www.imooc.com/wenda/detail/336386

https://www.imooc.com/wenda/detail/335836

https://www.imooc.com/wenda/detail/348922

https://www.imooc.com/wenda/detail/356071

https://www.imooc.com/wenda/detail/348765

https://www.imooc.com/wenda/detail/344034

https://www.imooc.com/wenda/detail/339020

https://www.imooc.com/wenda/detail/346734

https://www.imooc.com/wenda/detail/334446

https://www.imooc.com/wenda/detail/353598

https://www.imooc.com/wenda/detail/353935

https://www.imooc.com/wenda/detail/337673

https://www.imooc.com/wenda/detail/348403

https://www.imooc.com/wenda/detail/351039

https://www.imooc.com/wenda/detail/341215

https://www.imooc.com/wenda/detail/333874

https://www.imooc.com/wenda/detail/335393

https://www.imooc.com/wenda/detail/340493

https://www.imooc.com/wenda/detail/337650

https://www.imooc.com/wenda/detail/342707

https://www.imooc.com/wenda/detail/347320

查看完整回答
反对 回复 2021-10-20
?
拖鞋_

TA贡献476条经验 获得超233个赞

读本地文件的一种固定写法而已

没有为什么  约定俗成罢了

查看完整回答
反对 回复 2017-10-28

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信