function code(codeval){
var username = $.trim($('input[name=username]').val());
var email = $.trim($('input[name=email]').val());
var code = codeval;
var url = "";
$.ajax({
url: url,
type: 'POST',
dataType: 'json',
data: {username:username,email:email,code:code}
})
.done(function(data) {
if (data.status == 1) {
document.getElementById("s2").style.display="";
return false;
}
else if (data.status == -1) {
document.getElementById("s2").style.display="none";
return false;
}
})
event.preventDefault();
}
阅读(1259) | 评论(0) | 转发(0) |