亚洲国产日韩欧美在线a乱码,国产精品路线1路线2路线,亚洲视频一区,精品国产自,www狠狠,国产情侣激情在线视频免费看,亚洲成年网站在线观看

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

時間:2020-11-09 17:25:22 VBScript 我要投稿

在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)文章:

1.VBScript中字節(jié)數(shù)據(jù)操作函數(shù)

2.Java中g(shù)oto實現(xiàn)方法

3.怎么用vbscript實現(xiàn)在消息框中顯示一個超鏈接

4.javascript中各種函數(shù)的使用方法

5.PHP中strtotime函數(shù)使用方法

6.PHP中讀取大文件實現(xiàn)方法

7.常用的php函數(shù)的實現(xiàn)和介紹

8.VBScript常數(shù)