京东删除订单操作,求高手进来解答

WBOY
Release: 2016-06-06 20:46:24
Original
1227 people have browsed it

我想知道京东网站上删除订单是如何操作的,我用用chrome的审查元素看了下“删除”按钮,发现他是用JS绑定事件做的,在按钮上的a标签元素绑定了函数,函数的第一个参数就是订单ID号,我不改订单号的情况下可以正常删除,我故意用chrome把这个函数的订单号修改了,再点击"删除"按钮,没任何反应.请问大家,这个防止恶意操作是如何实现的呢??详细点

回复内容:

我想知道京东网站上删除订单是如何操作的,我用用chrome的审查元素看了下“删除”按钮,发现他是用JS绑定事件做的,在按钮上的a标签元素绑定了函数,函数的第一个参数就是订单ID号,我不改订单号的情况下可以正常删除,我故意用chrome把这个函数的订单号修改了,再点击"删除"按钮,没任何反应.请问大家,这个防止恶意操作是如何实现的呢??详细点

服务器验证了1提交的商品是不是有效的、2该商品是不是存在于你的购物车中、
post 返回了验证结果、js处理、

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!