• <sub id="h4knl"><ol id="h4knl"></ol></sub>
    <sup id="h4knl"></sup>
      <sub id="h4knl"></sub>

      <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
      1. <strong id="h4knl"></strong>

      2. 在VBScript中實現(xiàn)函數(shù)的方法

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

        在VBScript中實現(xiàn)函數(shù)的方法

          在JS中有這種用法,某個函數(shù)名可以當(dāng)成參數(shù)的形式,傳入到另外一個函數(shù)內(nèi)部去,例如:

          在VBScript有兩種方式可以來實現(xiàn),即用execute或GetRef函數(shù)。

          一、利用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中實現(xiàn)函數(shù)的方法】相關(guān)文章:

        VBScript中字節(jié)數(shù)據(jù)操作函數(shù)06-20

        excel中if函數(shù)的使用方法10-24

        vlookup函數(shù)在Excel中的使用方法09-21

        Excel中vlookup函數(shù)使用方法02-17

        excel中now函數(shù)的使用方法05-25

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

        探討PHP函數(shù)的實現(xiàn)原理及性能07-07

        Inventor中用函數(shù)來實現(xiàn)運動模擬05-22

        實現(xiàn)硬盤raid的方法07-31

        SQL中的單記錄函數(shù)08-12

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码
      3. <sub id="h4knl"><ol id="h4knl"></ol></sub>
        <sup id="h4knl"></sup>
          <sub id="h4knl"></sub>

          <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
          1. <strong id="h4knl"></strong>

          2. 亚洲精品视频在线观看你懂的 | 亚洲色婷婷5月 | 日韩AV不卡永久在线观看 | 日本中文字幕二区区精品 | 亚洲日韩va中文字幕 | 婷婷亚洲综合五月天小说 |

            在VBScript中實現(xiàn)函數(shù)的方法

              在JS中有這種用法,某個函數(shù)名可以當(dāng)成參數(shù)的形式,傳入到另外一個函數(shù)內(nèi)部去,例如:

              在VBScript有兩種方式可以來實現(xiàn),即用execute或GetRef函數(shù)。

              一、利用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")))