Javascript VBScript在Chrome中不起作用,但在IE中起作用
我在vbscrpt中有一堆代码。我需要在IE和Chrome中都使用它。我如何才能使这个函数在Chrome和IE中都使用Javascript VBScript在Chrome中不起作用,但在IE中起作用,javascript,vbscript,msxsl,Javascript,Vbscript,Msxsl,我在vbscrpt中有一堆代码。我需要在IE和Chrome中都使用它。我如何才能使这个函数在Chrome和IE中都使用 <msxsl:script language="VBScript" implements- prefix="mydetails"> Function Getdetails(Val1 , Val2) Dim blnGetdetails blnGetdetails = ((Val1 or Val2) = Val1) If blnGetdet
<msxsl:script language="VBScript" implements-
prefix="mydetails">
Function Getdetails(Val1 , Val2)
Dim blnGetdetails
blnGetdetails = ((Val1 or Val2) = Val1)
If blnGetdetails = true Then
Getdetails= "True"
Else
Getdetails= "False"
End If
End Function
</msxsl:script>
制作成JS
函数GetdetailsVal1,Val2{
如果Val2==Val1{
返回true;
}否则{
返回false;
}
}很简单:你不能。你可以在js中重写它,它只有几行…我如何在js中重写这个函数。。我对VB一无所知。