我用$.post()发出了一个get请求。。。
java:
@ResponseBody
@RequestMapping(value="/{seckillId}/{md5}/execute",method=RequestMethod.POST)
public SeckillResult<SeckillExecution> execute(
@PathVariable("seckillId") Long seckillId,
@PathVariable("md5") String md5,
@CookieValue("killPhone") Long userPhone) {}
js:$.post(killUrl,{},function(result){
if(result && result['success']){
var killResult=result['data'];
var state=killResult['state'];
var stateInfo=killResult['stateInfo'];
node.html('<span class="label label-success">'+stateInfo+'</span>');
}
});
难道我又见鬼了???