focus()与select();song2010年9月30日javascript focus(): 控件获取焦点,如在input = text中,光标出现在文字最后。 select(); 选取文本, 在input=text中,点击后文字全部选中。