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.
Powered by: 博客园 Copyright © 2024 hehexu Powered by .NET 8.0 on Kubernetes