在请教jquer的$.ajax的url如果url是http://的这种地址就不好用,提示“jquery-1.4.2.js”访问拒绝
如果换成相对地址就能用,代码如下:1、这个提示上面访问拒绝错误
function checknew_(){
  $.ajax({
    type:"POST",
    url:"http://www.xxx.com/checknew/index.asp",
    data:"act=1&t="+new Date().getTime(),
error:function(){alert('e');},
    success:function(tstr){
alert(tstr);
    }
  });
}2、这个顺利通过
function checknew_(){
  $.ajax({
    type:"POST",
    url:"../index.asp",
    data:"act=1&t="+new Date().getTime(),
error:function(){alert('e');},
    success:function(tstr){
alert(tstr);
    }
  });
}请教http://形式的url我应该怎么写才对啊? 因为我要访问一个远程的地址。非常感谢