且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取转义的网址参数

更新时间:2023-11-27 19:59:10

你不应该像这样使用jQuery!

现代的方法是使用通过像Bower这样的包管理器的小型可重用模块。

You should not use jQuery for something like this!
The modern way is to use small reusable modules through a package-manager like Bower.

我创建了一个小的模块可以将查询字符串解析为对象。像这样使用它:

I've created a tiny module that can parse the query string into an object. Use it like this:

// parse the query string into an object and get the property
queryString.parse(unescape(location.search)).search;
//=> æøå