document.getElementById(“Quantity”)song2010年9月30日javascript ?IE下,当id 为Quantity的找不到时,会找第一个name为Quantity的控件 ?FireFox下,只找id 故要为控件指定id,并用getElementById得到