2016
07-07
07-07
Yii2.0 ActiveForm组件的ajax提交方法
ActiveForm如何异步提交?1.首先在views层的ActiveForm中配置以下属性$form = ActiveForm::begin([ 'action' => Url::to(['post/save']), //此处为请求地址 Url用法查看手册 'enableAjaxValidation' => true, 'validatio...
继续阅读 >