最终实现效果 前台代码 以ThinkPHP默认的 index 模块为例,打开 application/index/view/index/index.html 后台代码 视图层写完转到控制器,打开 application/index/controller/index.php