关于获取元素ID的各种问题和他的运算顺序。。。。大神们帮帮忙!!!
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>style样式</title>
<script type="text/javascript">
var numresult;
var str;
function onclicknum(nums) {
str = document.getElementById("nummessege");
str.value = str.value + nums;
}
</script>
</head>
<body>
<input type="text" id="nummessege" />
<input type="button" value="4" id="4" onclick="onclicknum(4)">
</body>
</html>
这段代码到底是怎么运算的,他的运算顺序是怎么回事?