Firefox的解决方案是:setSelectionRange()方法。这个方法接受两个参数:索引和长度。 textField.setSelectionRange(0,1); //选择第一个字符 textField.focus(); //焦点 ...
確定! 回上一頁