JavaScript 參考手冊
Input Text 對(duì)象
選取文本域的內(nèi)容:
select() 方法用于選取文本域中的內(nèi)容。
所有主流瀏覽器都支持 select() 方法 。