Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取的url上的参数不是以对象的方式呈现 #35

Open
1140349909 opened this issue Jun 13, 2018 · 1 comment
Open

获取的url上的参数不是以对象的方式呈现 #35

1140349909 opened this issue Jun 13, 2018 · 1 comment

Comments

@1140349909
Copy link

let search = queryString.parse(this.props.location.search);
console.log(search, 111);

打印出
{?type: "wang"}

@LitoMore
Copy link

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"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants