摘要: 一、在Nginx下的伪静态规则,一般命名Nginx.conf location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } 二、在Apache下的伪静态规则, 一般命名.htacc 阅读全文
posted @ 2024-03-23 08:26 隔壁老王_wdUV 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 练习js时用到ajax,console报错:Access to XMLHttpRequest at ‘file:///Users/XXX/Downloads/nav/nav.json’ from origin ‘null’ has been blocked by CORS policy: Cross 阅读全文
posted @ 2024-02-02 17:43 隔壁老王_wdUV 阅读(989) 评论(0) 推荐(0) 编辑