VBScript GetRef º¯Êý
¶¨ÒåºÍÓ÷¨
GetRef º¯Êý¿É°ÑÒ»¶Î VBScript ¹ý³Ì£¨×Ó³ÌÐò£©Á¬½Óµ½Ò³ÃæµÄÒ»¸ö DHTML ʼþÉÏ¡£
Óï·¨
Set object.event=GetRef(procname)
²ÎÊý | ÃèÊö |
---|---|
object | ±ØÐèµÄ¡£Ê¼þËù¹ØÁªµÄ¶ÔÏóµÄÃû³Æ¡£ |
event | Required. ÒªÓ뺯Êý°ó¶¨µÄʼþµÄÃû³Æ¡£ |
procname | Required. Óëʼþ¹ØÁªµÄ Sub »ò Function ¹ý³ÌµÄÃû³Æ¡£ |
ʵÀý
Function test() dim txt txt="GetRef Test" & vbCrLf txt=txt & "Hello World!" MsgBox txt End Function Window.Onload=GetRef("test")