我尝试制作异步:false,输入=" POST"和dataType =" html",但它仍无法在Chrome和IE中使用。
我在我的索引jsp中声明,但是在使用chrome和IE时它没有出现。 var containerEmail = $("#dataEmailObj");和handsontableEmail = containerEmail.data(' handsontable');
在函数(res)中使用alert(res.data),它仍然显示我想要的数据。问题是有时它不会出现在屏幕上,有时显示
这是代码:
handsontableEmail = containerEmail.data('handsontable');
$.ajax({
url : "load-EmailConfig",
dataType : 'json',
contentType : 'application/json; charset=utf-8',
type : 'GET',
success : function(res) {
handsontableEmail.loadData(res.data);
},
error : function() {
alert("Could_not_load_data");
}
});