摘要: 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&# 阅读全文
posted @ 2012-02-08 16:04 Arliang 阅读(231) 评论(1) 推荐(0) 编辑