db.php 文件中添加 public function getlastsql(){ return $this->sql; } 入口文件中添加,公共方法 function getlastsql(){ include '../cmstop/framework/factory.php'; $db = & factory::db(); return $db->getlastsql();} function mylog1($input){ $file = '../mylog1.txt'; fi
author:headsen chen date:2018-03-21 15:12:09 notice:created by headsen chen himself and not allowed to copy ,or you count law questions. 1,打印函数名和打印函数的执行过程的区别: =============> 总结:打印函数名print(a),结果是把该函数的内存地址打印出来了. 打印函数的执行:print(a( )
一.简介 开发过程中我们往往需要写许多例如: @GetMapping("/id/get") public Result getById( String id) throws Exception{ log.info("请求参数为:"+id); verify(new VerifyParam("部门id", id)); Result result = new Result("通过id获取部门信息成功!", service.query