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

点击购买后,数量更新的速度没那么快? #10

Open
HuCaresU opened this issue Sep 29, 2016 · 0 comments
Open

点击购买后,数量更新的速度没那么快? #10

HuCaresU opened this issue Sep 29, 2016 · 0 comments

Comments

@HuCaresU
Copy link

@RequestMapping(value = "/{goodsId}/buy" 我去掉了 method = RequestMethod.GET,因为handler.js里的 $.post总是提示错误,导致点击购买无效;

现在点击购买后,提示购买成功,数据库里的数量也少了,但是需要手动刷新,页面上的数量才会减少。
慢慢学习中。。。代码写的很好,很容易看懂

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