<?phpnamespace app\index\controller;use app\index\model\Staff;class Moxin{public function index(){//更新數(shù)據(jù)$staff=new Staff();$data=['id'=>1037,'name'=>'張三豐','dept'=>'太極'];$staff->isUpdate(true)->save($data);dump($staff->getData());}}
- 1 回答
- 0 關(guān)注
- 812 瀏覽
添加回答
舉報
0/150
提交
取消