Input Text select() 方法
实例
选取文本域的内容:
document.getElementById("myText").select();
知识兔 »
定义和用法
select() 方法用于选取文本域中的内容。
浏览器支持
所有主流浏览器都支持 select() 方法 。
选取文本域的内容:
document.getElementById("myText").select();
select() 方法用于选取文本域中的内容。
所有主流浏览器都支持 select() 方法 。