慕运维8079593
<input type="button" id="button1" value="" /><script type="text/javascript">document.getElementById("text1").value="1";//jquery$("#text1").val("1");</script>如果是其他元素自定义了value属性的话就是用 setAttribute<html value=""></html><script type="text/javascript">//jsdocument.getElementsByTagName("html")[0].setAttribute("value","111");//jquery$("html").attr("value","111");</script>