js 传递参数

来源:互联网 发布:c语言完全数及其因子 编辑:程序博客网 时间:2024/05/07 20:06
    <div id="one"></div>
    <input type="button" value="" onclick="test(one);">------传递element
<script type="text/javascript"> 
    function test(obj){
        alert(typeof(obj));
    }
</script> 
0 0