摘要:
一、在Nginx下的伪静态规则,一般命名Nginx.conf location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } 二、在Apache下的伪静态规则, 一般命名.htacc 阅读全文
摘要:
练习js时用到ajax,console报错:Access to XMLHttpRequest at ‘file:///Users/XXX/Downloads/nav/nav.json’ from origin ‘null’ has been blocked by CORS policy: Cross 阅读全文