有些人可以澄清什么是vb脚本中的函数指针
答案 0 :(得分:3)
您正在寻找GetRef function。
从链接:
GetRef功能
返回对过程的引用 可以绑定到一个事件。 ...
<SCRIPT LANGUAGE="VBScript">
Function GetRefTest()
Dim Splash
Splash = "GetRefTest Version 1.0" & vbCrLf
Splash = Splash & Chr(169) & " YourCompany 1999 "
MsgBox Splash
End Function
Set Window.Onload = GetRef("GetRefTest")
</SCRIPT>
答案 1 :(得分:0)
函数指针是一个变量 存储块的内存地址 编程实现的代码 一个特定的功能。
See this了解更多信息。
答案 2 :(得分:0)
<!-- Question vote div starts here-->
<div id="QuesVoteDiv" class="vote">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ImageButton ID="ImageVoteUp" CssClass="voteImage" runat="server" ImageUrl="~/Resources/Images/vote-arrow-up.png"
ToolTip="The question is useful and clear(click again to undo)" CommandName="VoteUp" />
<br />
<asp:Label ID="VotesLabel" runat="server"></asp:Label>
<br />
<asp:ImageButton ID="ImageVoteDown" CssClass="voteImage" runat="server" ImageUrl="~/Resources/Images/vote-arrow-down.png"
ToolTip="The question is unclear or not useful(click again to undo)" CommandName="VoteDown" />
<asp:ImageButton ID="FavouriteQuestionImage" CssClass="VoteFavourite" runat="server"
ImageUrl="~/Resources/Images/vote-favorite-off.png" ToolTip="This is a favourite question (click again to undo)"
OnClick="VoteFavouriteImage_Click"/>
<br />
<asp:Label ID="FavouriteQuestionCountLabel" Text="" runat="server" CssClass="favoritecount-off"></asp:Label>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</div>
<!-- Question vote div ends here-->