作者:mobiledu2502924121 | 来源:互联网 | 2023-05-18 05:49
ImtryingtousejQuerytorunanAJAXqueryonaspecificport:我正在尝试使用jQuery在特定端口上运行AJAX查询:$(do
I'm trying to use jQuery to run an AJAX query on a specific port:
我正在尝试使用jQuery在特定端口上运行AJAX查询:
$(document).ready(function() {
$.ajax({
url: "http://test_serve:666/test.php",
type: "GET",
data: ({value_test: 'true'}),
dataType: "html"
});
})
This doesn't work: no AJAX call is made and I don't get any exceptions in Firebug. It does work if I don't specify the port. Does anyone know why?
这不起作用:没有调用AJAX,在Firebug中也没有任何异常。如果我不指定端口,它就会工作。有人知道为什么吗?
2 个解决方案