https://github.com/rwson/urlparser
an urlParser library
https://github.com/rwson/urlparser
Last synced: 3 months ago
JSON representation
an urlParser library
- Host: GitHub
- URL: https://github.com/rwson/urlparser
- Owner: rwson
- Created: 2016-11-15T15:23:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-15T15:36:05.000Z (over 9 years ago)
- Last Synced: 2025-12-25T13:45:50.634Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## UrlParser
Url解析库
#### Demo
var parser = UrlParser({
cfg: "http://abc.com/:id/:name",
url: "http://abc.com/id/name?id=123&name=345"
});
parser.parse();
/**
result:
{
pathParam: {
id: "id",
name: "name"
},
quertString: {
id: "123",
name: "345"
}
}
**/