附上点击更换的后台代码(thinkphp3.2.3)
//标签数据 $label = D("terms") - > where("term_id != 1") - > limit(0, $page) - > select(); $this - > assign("label", $label); //标签的点击更换 if (!empty($_POST['labellimit'])) { $limit = $_POST['labellimit']; $label = D("terms") - > where("term_id != 1") - > limit($limit, $page) - > select(); //根据limit查询数据 $this - > ajaxReturn($label, "JSON"); }