1. redirect(U('Index/index')); //redirect函数跳转要使用U方法,不适用U方法会跳转地址出错。
2. $this->success('新增成功', U('User/list'));
$this->success('新增成功', U('User/list'));
3.
3.$pri=I('post.pri_id'); // I函数来接受post过来的name为pri_id 的元素。
4.
5.
6.
7.
8.
9.
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3