 
					弑天下
					javascript函数可以传递参数给你发一个例子123456789101112<button onclick="testParam('a')">js函数传参</button>    <script type="text/javascript">        function testParam(str){            alert("按钮传的参数为:" + str);            var oStr = "test";            test(oStr);        }         function test(str){            alert("函数间传的参数为:" + str);        }    </script>