<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            在VBScript中實現函數的方法

            時間:2024-07-08 12:02:44 VBScript 我要投稿
            • 相關推薦

            在VBScript中實現函數的方法

              在JS中有這種用法,某個函數名可以當成參數的形式,傳入到另外一個函數內部去,例如:

              在VBScript有兩種方式可以來實現,即用execute或GetRef函數。

              一、利用execute:

              FunctionmyFuncA(str,myFuncName)

              str=str&"您好!"

              execute("str="&myFuncName&"(str)")

              myFuncA=str

              EndFunction

              FunctionmyFuncB(str)

              str=str+"歡迎來到IECN.NET"

              myFuncB=str

              EndFunction

              msgboxmyFuncA("張三","myFuncB")

              二、利用GetRef:

              FunctionmyFuncA(str,myB)

              str=str&"您好!"

              str=myB(str)

              myFuncA=str

              EndFunction

              FunctionmyFuncB(str)

              str=str+"歡迎來到IECN.NET"

              myFuncB=str

              EndFunction

              document.write(myFuncA("張三",GetRef("myFuncB")))

            【在VBScript中實現函數的方法】相關文章:

            VBScript中字節數據操作函數06-20

            excel中if函數的使用方法10-24

            vlookup函數在Excel中的使用方法09-21

            Excel中vlookup函數使用方法02-17

            excel中now函數的使用方法05-25

            PHP中date函數常用時間處理方法09-13

            探討PHP函數的實現原理及性能07-07

            Inventor中用函數來實現運動模擬05-22

            實現硬盤raid的方法07-31

            SQL中的單記錄函數08-12

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看