本帖最后由 gsyxy100 于 2017-7-20 17:38 编辑
IE10下没有响应,alert(1);消息出现,但点击单元格后没有响应,麻烦帮我调试一个DEMO,谢谢!
window.onload = function () {
var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
if (document.all) {
// IE
if (spread1.addEventListener) {
// IE9
alert(1);
spread1.addEventListener("CellClicked", cellClicked, false);
//spread1.addEventListener("ActiveCellChanged", cellChanged, false);
} else {
// Other versions of IE and IE9 quirks mode (no doctype set)
alert(2);
spread1.CellClicked = cellClicked;
}
}
else {
// Firefox
alert(3);
spread1.addEventListener("CellClicked", cellClicked, false);
}
}
function cellClicked() {
App.direct.FpSpread1_CellClick(event.row, event.col);
}
function cellChanged(event) {
App.direct.FpSpread1_CellClick(event.row, event.col);
} |