- <html><head></head>
- <body>
- <div id=lll></div>
- <script language=vbs>
- function type_(obj)
- type_=typename(obj)
- end function
- </script>
- <script language=javascript>
- function a(){
- var div=document.getElementById("lll");
- var p=document.createElement("p");
- alert(type_(p));
- p.innertext=1;
- div.appendChild(p);
- }
- </script>
- <button onclick=a()>aaaaaaaaaaa</button>
- </body>
- </html>
复制代码 哪里有问题呢?
用vbs的typename试过了 div和p都是对的
把这段代码翻译成vbs也完全能执行 |