本文介绍了java脚本代码转换问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我有以下javascript代码 < script 语言 = javascript 类型 = text / javascript > function Disable(){ document.getElementById(bAllocate) .disabled = true; } < / script > 我想在VB中转换上面的代码如下代码 昏暗 strMessage As String = count& 上传的项目! Dim strScript 作为 字符串 = < script language = JavaScript> strScript + = alert(& strMessage& ); strScript + = Chr( 60 )& / script> 请帮我解决方案 Dim str1 As String = < script language = JavaScript> str1 + = document.getElementById str1 + = ( str1 + = & bAllocate & str1 + = )。 str1 + = disabled = true; str1 + = Chr( 60 ) &安培; / script> hi,I have following javascript code <script language="javascript" type="text/javascript"> function Disable() { document.getElementById("bAllocate").disabled = true; }</script>I want to convert above code in VB like below codeDim strMessage As String = count & " Items Uploaded!" Dim strScript As String = "<script language=JavaScript>" strScript += "alert(""" & strMessage & """);" strScript += Chr(60) & "/script>"Pls help me 解决方案 Dim str1 As String = "<script language=JavaScript>"str1 += "document.getElementById"str1 += "("str1 += """" & "bAllocate" & """"str1 += ")."str1 += "disabled = true;"str1 += Chr(60) & "/script>" 这篇关于java脚本代码转换问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-23 06:47