后台AJAX提交
$.post($("#registform").attr("action"), $("#registform").serialize(), function(result) {
if(result.success) {
layer.msg("注册成功!");
setInterval("window.location.href = '/';", 1000);
return ;
}
layer.msg("注册失败!", result.failedMessage);
});