12 2020 档案

摘要:让Json更懂中文(JSON_UNESCAPED_UNICODE 原文:https://www.laruence.com/tag/json_unescaped_unicode 我们知道, 用PHP的json_encode来处理中文的时候, 中文都会被编码, 变成不可读的, 类似"\u***"的格式, 阅读全文
posted @ 2020-12-21 15:45 pine007 阅读(139) 评论(0) 推荐(0) 编辑
摘要:public function test() { $test = request()->input('test','this is test !!!'); dd($test); } 请求时,没有test参数字段时,$test='this is test !!!' 请求时,test参数为空时,$tes 阅读全文
posted @ 2020-12-11 16:13 pine007 阅读(954) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示