author:咔咔
//監(jiān)聽(tīng)提交按鈕
form.on('submit(formSubmit)', function(data){
$.post("{:url('video_type/editInfo')}",data.field,function(r){
if(r.code==1){
location.href="{:url('video_type/index')}";
}
else{
layer.msg(r.msg,{time:1800});
}
});
});
本文摘自 :https://blog.51cto.com/k