
代码片段
hai__yin
静下心来找回自己
展开
-
代码片段
后端: model: public static $PROGRERSS = [ 1 => 'xxx', 2 => 'xxx', 3 => 'xxx', 4 => 'xxx', 5 => 'xxx', ]; cont...原创 2019-02-22 18:31:16 · 153 阅读 · 0 评论 -
前段与后端交互,解决跨域问题
在代码头加入: header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Methods:OPTIONS, GET, POST'); // 允许option,get,post请求 header('Access-Control-Allow-Headers:x-requested-with'); // 允许x-requ...原创 2019-03-09 17:17:54 · 316 阅读 · 0 评论