摘要:
function Select(posStart, posEnd) { var posStart = parseInt(posStart) || 0; var posEnd = parseInt(posEnd) || 0; var input = document.getElementById("myText"); if(posStart > posEnd){ //在Chrome中试了,End要比Start大 var tmp = posStart; posStart = posEnd; posEnd = tmp; } if ('selectionStart 阅读全文