<form>
<input type="text" name="text1" value="100"/>
<input type="text" name="text2" value=""/>
<input type="button" onclick="copyValue()"/>
</form>
function copyValue()
{
var text1 = document.forms[0].text1;
var text2 = document.forms[0].text2;
text2.value = text1.value;
}
<input type="text" name="text1" value="100"/>
<input type="text" name="text2" value=""/>
<input type="button" onclick="copyValue()"/>
</form>
function copyValue()
{
var text1 = document.forms[0].text1;
var text2 = document.forms[0].text2;
text2.value = text1.value;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货