您不应该使用jQuery这样的东西!
现代的方式是通过像Bower这样的包管理器使用小型可重复使用的模块。
我创建了一个微型模块,可以将查询字符串解析为一个对象。像这样使用它:
// parse the query string into an object and get the propertyqueryString.parse(unescape(location.search)).search;//=> æøå

您不应该使用jQuery这样的东西!
现代的方式是通过像Bower这样的包管理器使用小型可重复使用的模块。
我创建了一个微型模块,可以将查询字符串解析为一个对象。像这样使用它:
// parse the query string into an object and get the propertyqueryString.parse(unescape(location.search)).search;//=> æøå