03 2017 档案
Cors 跨域访问API
摘要:server()['HTTP_ORIGIN'] ?? false; if ($origin && in_array($origin, $domains)) { header('Access-control-Allow-Origin: ' . $origin); header('Access-control-Allow-Headers... 阅读全文
posted @ 2017-03-11 16:18 jzfan 编辑
多文件上传
摘要:$files = $request->allFiles(); foreach ($files as $file) { $fileName = uniqid() . ‘.’ . $file->getClientOriginalExtension(); $file->move(‘temp_test’, $fileName); } 阅读全文
posted @ 2017-03-10 16:24 jzfan 编辑
mysql的数据类型int、bigint、smallint 和 tinyint取值范围
摘要:使用整数数据的精确数字数据类型。 bigint 从 -2^63 (-9223372036854775808) 到 2^63-1 (9223372036854775807) 的整型数据(所有数字)。存储大小为 8 个字节。 int 从 -2^31 (-2,147,483,648) 到 2^31 - 1 阅读全文
posted @ 2017-03-08 15:01 jzfan 编辑

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