因为我得到了一些 403 错误......那是因为我的服务器没有启用目录列表有人做过类似的事情吗?
谢谢。
像这样?
/* 'somepage.php' is our script source.
'username' is our varible, jonathansampson is the value
'result' will hold anything the script sends back
'text' is the type of data we're expecting. */
$.get("somepage.php", {"username":"jonathansampson"}, function(result){
alert(result);
}, "text");