Yii2.0 ActiveForm怎么ajax提交表单

2026年09月21日 19:12
有1个网友回答
网友(1):

Insert title here $(function(){ var check = 1; $("#myForm").submit(function(e){ //取消默认提交事件 //e.preventDefault(); if(check == 1){ console.log("验证通过,提交数据"); $(this).ajaxSubmit({ type: 'post', // 提交方式 get/pos...