<script type="text/javascript" language="javascript">
function pushbutton()
{
alert("hi");
}
</script>
</head><body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="pushbutton()" /></div>
</form>
</body>
为什么我这段脚本执行的时候报错说:不包含pushbutton()的定义
function pushbutton()
{
alert("hi");
}
</script>
</head><body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="pushbutton()" /></div>
</form>
</body>
为什么我这段脚本执行的时候报错说:不包含pushbutton()的定义
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货