$('.listorder input').blur(function(){ //编写抛送逻辑 //获取主键id var id = $(this).attr('attr-id'); //获取排序的值 var listorder = $(this).val(); var postData = { 'id':id, 'listorder':listorder, }; var url = SCOPE.listorder_url; //抛送http $.post(url, postData, function(result){ if(result.code == 1 ){ location.href = result.data; }else{ alert(result.msg); } },"json"); });