首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:VBScript 教程
TRY RUN / 在线示例
VBScript 教程 创建和改变变量
VBScript 教程 创建和改变变量
源代码
运行
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> Dim firstname firstname="Hege" document.write(firstname) document.write("<br>") firstname="Tove" document.write(firstname) </script> <p>The script above declares a variable, assigns a value to it, and displays the value. Then, it changes the value, and displays the value again.</p> </body> </html>
运行结果