我有一个链接按钮和 JavaScript 设置,像这样
<asp:LinkButton ID="lnkbutton"
CssClass="Button"
OnClientClick="javascript:PlayVideo();"
runat="server">Play Video</asp:LinkButton>
<script type="text/javascript">
funtion PlayVideo(){
$('#ctl00_EFlyerCPH_EFlyerPart_ytapiplayer2').show();
$('#ctl00_EFlyerCPH_EFlyerPart_imageID').hide();
}
</script>
但是当我点击我的按钮时,我收到一条错误消息
PlayVideo 未定义...我做错了什么?