是否可以链接外部页面的"view-source:"?

Jon*_*nny 9 html view-source

我尝试使用<a href="view-source:google.com">External Source</a>但只返回一个断开的链接.

小智 1

http:缺少架构/协议:

<a href="view-source: http: google.com">外部来源</a>`

使用 scURIple(scriple)进行测试:

data:text/html;charset=utf-8,<html><a href="view-source:http:google.com">External Source</a></html>
Run Code Online (Sandbox Code Playgroud)

  • 这不再起作用了。http://stackoverflow.com/questions/39755819/view-source-in-href-shows-error-in-console (6认同)