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;
}
}

原文地址:https://www.cnblogs.com/taiyanhong/p/9660803.html