PHP基础PHP教程php框架JavaScript
asp.netAJAX正则表达式ASP
1
2
3
4
5
$("button").click(function() {
$.get("127.0.0.1:8081/partners/json", function(result) {
$("div").html(result);
});
$.get("partners/json", function(result) {
6
7
8
9
10
11
12
server{
listen8000;
location/ {
includeuwsgi_params;
uwsgi_passunix:/tmp/testFlask2.sock;
}
location/partners {
rewrite^.+partners/?(.*)$ /$1 break;
uwsgi_passunix:/tmp/testFlask1.sock;
location/sohu {
rewrite^.+sohu/?(.*)$ /$1 break;
proxy_passhttp://www.sohu.com/;
以上就介绍了最简单实现跨域的方法:使用nginx反向代理,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。