【发布时间】:2011-12-14 07:43:39
【问题描述】:
我现在一直在尝试制作这个跨浏览器发布语句,但我收到以下错误:
$.ajax({
type: 'POST',
url: "http://ourdevtest.com/foo/foo",
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data: form.serialize(),
success:function(result, textStatus, xhr) {
form.hide();
console.log('success in preview form');
console.log("result: " + JSON.stringify(result));
console.log("textStatus: " + textStatus);
console.log("xhr: " + JSON.stringify(xhr));
app.showThankYou();
},
dataType: 'json'
});
});
},
它无法加载此 URL,但我不知道如何阻止它添加奇怪的字符。
【问题讨论】:
-
%E2%80%8b 是
â...奇数的url编码字节形式。
标签: javascript jquery ajax json