dim  i  
i=10  
test  ()  
function  test()  
     dim  i  
     i=20  
End  function  
msgbox i是10  啊

解决方案 »

  1.   

    dim  i  
    i=10  
    test  ()  
    function  test()  
         dim  i  
         i=20  
    End  function  
    msgbox i是10  啊
      

  2.   

    相信我,net_lover(孟子E章)是不会错的。
      

  3.   

    那好,不许调试,看以下代码分别msgbox什么?先想想然后调试代码1:
    <script language=vbs>
    dim  i  
    i=10  
    function test(j)  
        j=20  
    End function
    test i
    msgbox i
    </script>代码2
    <script language=vbs>
    dim  i  
    i=10  
    function test(j)  
        j=20  
    End function
    test(i)
    msgbox i
    </script>事先想的和答案一样才能回答这个问题