我的错误是在跳转的url中拼接了url,如下:

var myBaseUrl="https://xxx/";
    function do() {
	$.ajax({
		url :myBaseUrl+"wechat/weChatUntie.action",
		cache : false,
		dataType : "json",
		type: "POST",
                .................
<button >解绑账号</button><br/><br/>

换了个姿势就好了,将拼接的完整的url存到一个变量中,然后访问即可:

<script type="text/javascript"   charset="UTF-8">
	var myBaseUrl="https://'xxx'";
	function  do() {
	$.ajax({
	    url :myBaseUrl,
		cache : false,
		dataType : "json",
		type: "POST",
        .................
	} 
</script>

浪费了一个早上,就这么个破问题,特此记录!

over!

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2021-09-17
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
相关资源
相似解决方案