type 和method 一样的含义 只是mthod是version1.9添加的,
所以版本1.9之前的使用type 之后的使用method
$.ajax({
url : "xxx/"+ typeid,
method : "delete",
dataType : "json",
success : function(data){
alert('删除成功!');
}
});
$.ajax({
url : "xxx/"+ typeid,
type: "delete",
dataType : "json",
success : function(data){
alert('删除成功!');
}
});