function check(){
var x=$.ajax({
type:'post',
url:'check',
data:{categoryName:$("#cName").val()},
async:false,
success:function(r){
return false;
}
});
var xx= x.responseText;
if(xx!="ok"){
alert(xx);
return false;
}else{
return true;
}
}
网友评论