ITPub博客

首页 > 应用开发 > > ajax 不能进后台

ajax 不能进后台

作者:piny 时间:2019-08-13 15:42:45 0 删除 编辑

"SyntaxError: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL" 这个是谷歌调试看到的异常

以下是我的ajax代码

··$.ajax({

method:"post",

type:"POST",

url: ":8080/skproject/SysLocationInfoController/testEntityData.json",

data:{"sysUserInfo.user_nm":username, "sysUserInfo.pwd":password},

datatype:"json",

success:function(data){

alert("成功了");

},

error:function(error){

alert(error);

}

}); ··

注:我的URL贴到浏览器里可以正常工作进后台。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3034/viewspace-3127308/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2020-05-13

  • 博文量
    137
  • 访问量
    8808