大飞_dafei

导航

2018年11月24日 #

Yii2 中 checkboxlist 复选框 默认选中

摘要: Yii2 中 checkboxlist 复选框 默认选中问题 方法1: 在 controller 中 model->字段 = 值; 比如: $model->type= 1; 方法2: <?= $form->field($model, 'type')->checkboxlist([ 1 => 'ite 阅读全文

posted @ 2018-11-24 22:04 大飞_dafei 阅读(407) 评论(0) 推荐(0) 编辑