微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

URL Parser

程序名称:URL Parser

授权协议: 未知

操作系统: 未知

开发语言:

URL Parser 介绍

Parses URLs and provides easy access to @R_798_4045@ion within them, such as the
protocol, host, port, the segments that make up the path and the varIoUs query
string values. The parser is based on the Regex URI parser by Stephen
Levithian - http://blog.stevenlevithan.com/archives/parseuri.

`// Get the domain name (host) from the current page URI
jQuery.uri.attr(“host”);

// Get the query string value for ‘item’ for the current page
jQuery.uri.param(“item”);

// Get the second segment of the URI of the current page
jQuery.uri.segment(2);

// Get the protocol of a manually passed in URL
jQuery.uri.setUri("http://allmarkedup.com/”).attr(“protocol”) // returns
‘http’`

URL Parser 官网

http://plugins.jquery.com/project/url_parser

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐