控制器renderAjax返回的
return $this->renderAjax('form',[ 'model' => $this->table,'id'=>0]);
前端脚本
$.get('/table/update',{id:id},function(t){ if(t){ $("#myModal").remove(); $('body').append(t); $("#myModal").modal('toggle'); } })
请求回来验证都失效了,求助!!!
学习是最好的投资!
学习是最好的投资!