thinkphp 分页类 url 编码处理

在做thinkphp分页的时候  thinkphp 中的分页 有一个小问题 就是 在有form 表单 搜索中文的时候,点击下一页的话 中文会被转换成编码。

如图:

 最直接的方法就是 直接修改 thinkphp 分页类 的源代码。(反正改了也不会出现什么大问题~)

在 Page.class.php 文件中 show 方法里面

将 原来的代码注释掉,修改为新的。

$this->url=U(ACTION_NAME).'?'.http_build_query($this->parameter);

ok~  完成任务。

原文地址:https://www.cnblogs.com/wjm956/p/9523608.html