jQuery tools validator: url and %20
jQuery tools validator: url and %20
我正在使用jQuery工具验证器来验证url,但它认为带有%20的url无效(您可以使用此处的示例reg表单进行测试:http://www.jquerytools.org/documentation/validator/index.html )
如果 url 包含空格字符而不是 %20,则一切正常。
问题是,当您从Chrome网址框中复制网址时,您总是得到%20而不是空格。因此,从 Chrome 复制并粘贴到我的表单将不起作用。
将 %20 的 url 视为无效而空格字符为有效的 url 是否正确?
将 %20 的 url 视为无效而空格字符为有效的 url 是否正确?
不。网址不得包含原始空间。它们必须表示为%20
(如果使用表单编码,则表示为+
)
相关文章:
- 如何使用url加载程序在webpack中导入多个图像
- 使用php或javascript从facebook相册URL中删除多余的部分
- Angular JS IE9 Hashbang url rewriting
- JavaScript下拉菜单-点击按钮并根据所选值重定向到url
- 直接下载文件,而不是从window.open(url)
- 通过 jQuery Find and Replace 将文本 URL 与 标记包装在一起
- JavaScript and URL parameters
- jQuery tools validator: url and %20
- Find and Replace可在Notepad++中跟踪URL
- Cookies & URL's and instances
- JASFinder and CKEDITOR returning url
- A href and url problems
- Regex to validate both web and LDAP url
- Laravel and JQuery URL call
- Detect FQDN and URL REGEX MATCH (Javascript)
- Express.js and Angular.js html5mode (Avoiding # in url)
- tideSDK, jquery, XMLHttpRequest, and absolute URL's
- Dotnet and JavaScript url encoding
- HttpContext.Current.Request.Url.Host and window.location.hos
- JavaScript, window.open, clean url's and Internet Explor