我的js执行不到function(result)这个方法里面语句里面,其它地方都可以运行
来源:5-6 排序功能开发
让自己发光
2017-08-30
$('.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");
});写回答
1回答
-
singwa
2017-08-30
您好。您看看您result返回的内容是什么?
042017-08-31
相似问题