有谁知道这个警告指的是什么以及我将如何解决它?
Resource requests whose URLs contain raw newline characters are deprecated, and may be blocked in M60, around August 2017. Please remove newlines from places like element attribute values in order to continue loading those resources. See https://www.chromestatus.com/features/5735596811091968 for more details.
我得到以上描述console
我正在尝试使用 pass url$.getJSON
方法。我在警报框中收到 url,但它无法转到控制器类。
我的代码在这里:
function LoginSucessInfo( result )
{
var id = "6546767576657";
url = "/logindetails?id="+id+"&result="+result;
alert(url);
$.getJSON(url, function(data1){
alert("--");
});
}
我的代码有什么问题?
可能有换行符或 HTML 或空格result
。消毒result
使用encodeURIComponent
...
result = encodeURIComponent(result);
url = "/logindetails?id="+id+"&result="+result;
...
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)