09 2019 档案

摘要:重写Handle的render方法,实现自定义异常消息 首先要在config.php里面配置 // 异常处理handle类 留空使用 \think\exception\Handle'exception_handle' => '\\app\\common\\exception\\ExceptionHa 阅读全文
posted @ 2019-09-20 15:52 郑筱筱 阅读(2109) 评论(0) 推荐(0)
摘要:简单的写法: <script> function decNum(a){/*获取小数位数*/ var r=0; a=a.toString(); if(a.indexOf(".")!== -1) r=a.split(".")[1].length; return r; } function int(a){ 阅读全文
posted @ 2019-09-11 17:22 郑筱筱 阅读(324) 评论(0) 推荐(0)
摘要:https://www.php.cn/manual/view/4446.html 阅读全文
posted @ 2019-09-10 11:12 郑筱筱 阅读(149) 评论(0) 推荐(0)