02-29
0
FastAdmin框架
add/edit 字段条件判断
$params = $this->request->post(‘row/a’);
新增功能 controtroller + mdoel + validate+view + public/assets/js +菜单规则
解决跨域问题
// check_cors_request();
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE'); //请求方法
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Control-Type, Content-Type, token, Accept, x-access-sign, x-access-time');
if (request()->isOptions()) {
exit();
}