Open 1140349909 opened 6 years ago
Translation:
Title: When I trying to get the parameters from the location.search
, the result is not an object.
let search = queryString.parse(this.props.location.search);
console.log(search, 111);
// The output is:
{?type: "wang"}
let search = queryString.parse(this.props.location.search); console.log(search, 111);
打印出 {?type: "wang"}