We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//
以 // 开头的 URL 是一个合法的 protocol-relative URL, 详情请参考 http - Can a URL start with "//"? - Stack Overflow, 但插入时出现如下错误
main.9a057395dbc2d4f4c1de.js:1 Uncaught TypeError: Failed to construct 'URL': Invalid URL at HTMLInputElement.<anonymous> (main.9a057395dbc2d4f4c1de.js:1) (anonymous) @ main.9a057395dbc2d4f4c1de.js:1
支持 // 开头的 URL
The text was updated successfully, but these errors were encountered:
不考虑了,因为实现上用了协议作为一些条件判断。
Sorry, something went wrong.
这种 URL 视为 http 协议或者 https 协议均可
http
https
咦,我这里好像没有报错。
//player.bilibili.com/player.html?aid=895154192&bvid=BV1NP4y1M72N&cid=562898119&page=1 试试这个 URL, 需要在资源 input 粘贴后单击回车
//player.bilibili.com/player.html?aid=895154192&bvid=BV1NP4y1M72N&cid=562898119&page=1
只在第一次单击回车时触发错误
Vanessa219
No branches or pull requests
描述问题 Describe the problem
以
//
开头的 URL 是一个合法的 protocol-relative URL, 详情请参考 http - Can a URL start with "//"? - Stack Overflow, 但插入时出现如下错误期待的结果 Expected result
支持
//
开头的 URL版本环境 Version environment
The text was updated successfully, but these errors were encountered: