-
-
-
document.getElementById(“Quantity”)
?IE下,当id 为Quantity的找不到时,会找第一个name为Quantity的控件 ?FireFox下,只找id 故要为控件指定id,并用getElem...
-
-
focus()与select();
focus(): 控件获取焦点,如在input = text中,光标出现在文字最后。 select(); 选取文本, 在input=text中,点击后文字全部选...
-
-
JavaScript中的Screen对象
screen 屏幕对象 反映了当前用户的屏幕设置。 属性 width 返回屏幕的宽度(像素数)。 height 返回屏幕的高度。 availWidth 返回屏幕...
-
-
JS 文本控制–TextRange
?createTextRange: 将文本转成对象 1,得到文本 text , html:htmlText var rng=document.body.crea...
-
栏目索引
阅读排行榜