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

01、jQuery Ajax用传统的方式来序列化数据-traditional:true #1

Open
Peter-Success opened this issue May 25, 2018 · 0 comments

Comments

@Peter-Success
Copy link
Owner

$.ajax({
traditional:true
});
设置traditional为true,前端就可以直接通过ajax向接口传递类似数组之类的对象数据,就无需前端再使用JSON.stringify()去事先序列号数据了。

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

1 participant