"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貼到瀏覽器里可以正常工作進后臺。
ajax 不能進后臺
吃雞游戲
2018-10-21 09:05:30