将JavaScript代码转换为VBScript代码?

时间:2021-02-13 01:49:18

I have been given a task to convert code that is written in JavaScript over to VBScript. It is actually quite basic code and it is really just the syntax that needs to be converted.

我被赋予了将用JavaScript编写的代码转换为VBScript的任务。它实际上是非常基本的代码,它实际上只是需要转换的语法。

For example

 if (str == "string text") {
   foo = "foo";
} else {
   foo2 = "foo2";
}

becomes

 If (str = "string text") Then
   foo = "foo"
Else
   foo2 = "foo2"
End If

I was wondering if a tool existed to convert from JavaScript to VBScript?

我想知道是否存在从JavaScript转换为VBScript的工具?

1 个解决方案

#1