在javascript中,可以利用setAttribute()方法来设置input value值,该方法可以设置指定元素的属性值;语法格式“input元素对象.setAttribute("value", "值&