Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jquery ajax调用返回403 internet explorer中禁止的错误_Javascript_Jquery_Ajax - Fatal编程技术网

Javascript jquery ajax调用返回403 internet explorer中禁止的错误

Javascript jquery ajax调用返回403 internet explorer中禁止的错误,javascript,jquery,ajax,Javascript,Jquery,Ajax,这个ajax调用在firefox和chrome中运行良好,但在InternetExplorer中它的响应是“403禁止”。我在同一个域名上打这个电话。我得到的回应,直到整个页面加载,但在此之后,我得到403禁止的错误 $.ajax( { url : "gettwitt.php?val=0&media=med-16, type : "GET", cache : "false", dataType : "json", success : function(n) { alert(n)

这个ajax调用在firefox和chrome中运行良好,但在InternetExplorer中它的响应是“403禁止”。我在同一个域名上打这个电话。我得到的回应,直到整个页面加载,但在此之后,我得到403禁止的错误

$.ajax(

{
url : "gettwitt.php?val=0&media=med-16,
type : "GET",
cache   : "false",
dataType : "json",
success : function(n)
{
  alert(n);
}
});
你可以在

无法使用匹配的分隔符关闭字符串。在第一个字符串中添加结束符

另外,
false
“false”
是两个不同的东西,后者相当于
true
(因为它是一个非空的
String
)而不是
false
。将引号放在那里

url : "gettwitt.php?val=0&media=med-16",
///                                   ^ Add a " there, like I have done.