1     public function index_edit_doExport() {
2         $search=$_POST['id'];
3         $this->success(U('Tongji/index_edit_doExport_action',array('id'=>$search)));  //传值
4     }
5     public function index_edit_doExport_action() {
6         $id=$_GET;  //接受
7         $id=$id['id'];

$this->success(U(url,data));

其中,url是传输的地址;

data是传输的数组;

被传递的方法中,用 $_GET 接受传输的数据

相关文章:

  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2021-04-02
  • 2021-07-12
相关资源
相似解决方案