我的错误是在跳转的url中拼接了url,如下:
var myBaseUrl="https://xxx/";
function do() {
$.ajax({
url :myBaseUrl+"wechat/weChatUntie.action",
cache : false,
dataType : "json",
type: "POST",
.................
<button id="Untie" class="btn" οnclick="do()">解绑账号</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!