shift键复选dataGrid的记录时多余的文本总被选择了。

document.onkeydown = function(event) {
if (event.shiftKey) {
document.onselectstart = function(event) {
return false;
}
} else {
document.onselectstart = function(event) {
return true;
}
}
}

document.onkeyup = function(event) {
document.onselectstart = function(event) {
return true;
}
}

posted @ 2018-09-17 10:32  红色沙漠  阅读(174)  评论(0编辑  收藏  举报