简体   繁体   English

src URL中的\\ / \\ /

[英]\/\/ in src URL

I can't find a way to google this answer, and I'm not sure what the best title for this question would be either. 我找不到找到该答案的方法,也不确定该问题的最佳标题是什么。 If you go to a video on facebook, such as https://www.facebook.com/sari.electronplus/videos/10208501562556645/ 如果您在Facebook上观看视频,例如https://www.facebook.com/sari.electronplus/videos/10208501562556645/

and you look at the source, there are all these lines with url's 然后看一下源代码,所有这些行都带有url

 {"type":"js","src":"https:\\/\\/www.facebook.com\\/rsrc.php\\/v3ixjD4\\/yL\\/l\\/en_US\\/WwzFPTYi5Xh.js?_nc_srcc=2665","crossOrigin":1},"CDaAd": 

For what reason are there "/"s instead of "/" in the link? 由于什么原因,链接中有“ /”而不是“ /”?

It helps when embedding in a script tag which doesn't allow certain characters. 当嵌入不允许某些字符的脚本标记时,它会有所帮助。

See this answer: https://stackoverflow.com/a/1580682/1927618 看到这个答案: https : //stackoverflow.com/a/1580682/1927618

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM