摘要: 第一种:$model = new User(); foreach($data as $attributes) { $_model = clone $model; $_model->setAttributes($attributes); $_model->save(); } 第二种:$model = 阅读全文
posted @ 2017-05-16 16:44 calmly 阅读(478) 评论(0) 推荐(0)