3
将jquery从1.4.2升级到1.4.4后,我现在在尝试使用$ .ajax时出现此错误“WrappedNative原型对象上的非法操作” )jquery ajax从1.4.2升级到1.4.4后出现的问题
下面是简化代码:
function doAjax(url, data, complete) {
if (data == null) {
var data = {};
}
if (complete == null) {
var complete = function(){};
}
if (url == '') {
url = window.location;
}
data.ajax = 1;
$.ajax({
type: 'POST',
url: url,
cache: false,
data: data,
dataType: 'script',
success: function(data, textStatus){
},
error: function(xhr, textStatus, errorThrown) {
doAlert('An error occurred: '+xhr.responseText);
},
complete: complete
});
}
doAjax('', {});
任何人有任何想法的问题可能是什么?
是的,它确实解决了它。 – Echo 2011-01-13 15:39:34