本文用到:jquery、tp框架
tp_3.2.2/application/home/controller/stucontroller.class.php
/**
* created by phpstorm.
* user: root
* date: 2018/4/17
* time: 16:32
*/
namespace home\controller;
use think\controller;
class stucontroller extends controller
{
public function stushow(){
$this->display("school/stu");
}
public function getdata(){
$studata = m('stu');
$data['id']='';
$data['name']=i('get.name');
$data['age']=i('get.age');
$data['num']=i('get.num');
$data['address']=i('get.add');
$studata->add($data);
$this->success("正在。。。",u('stu/showdata'));
}
public function s