Skip to content

Instantly share code, notes, and snippets.

@zhoumengkang
Created February 28, 2014 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhoumengkang/9267496 to your computer and use it in GitHub Desktop.
Save zhoumengkang/9267496 to your computer and use it in GitHub Desktop.
var flag = true;
$.ajax({
type: "POST",
async:false,
cache:false,
url: "{:U('Public/checkEmail')}",
data:{email:$("#email").val()}
}).done(function(data) {
if(parseInt(data)==1){
ui.error('该邮箱已注册');
flag = false;
}
});
if(!flag){
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment