$model = D('Account');
$data = $model->create();
jquery收集数据 sendinvite.serialize()
function initsendinvite(){
var sendinvite = $('#sendinvite');
sendinvite.on('submit',function(ev){
$(".sendNote").attr("disabled",true);
ev.preventDefault();
$.ajax({
url:"/Enterprise/employee",
type:'POST',
data:sendinvite.serialize(),
dataType:'json',
success:function(d){
if(d.status == 1){
$(".mask").show();
$(".maskbox").stop().animate({"margin-top":30+"px"},300);
}else{
alert('数据异常!请重试!!');
}
},error:function(){
alert('数据异常!请重试');
}
});
});
}