如题所述
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script>
var array;
function alertArray() {
alert('arrayçå 容æ¯:' + array.join(','));
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="btn" runat="server" OnClientClick="alertArray();return false;" Text='alert' />
</form>
</body>
</html>
<head runat="server">
<title></title>
<script>
var array;
function alertArray() {
alert('arrayçå 容æ¯:' + array.join(','));
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="btn" runat="server" OnClientClick="alertArray();return false;" Text='alert' />
</form>
</body>
</html>
温馨提示:答案为网友推荐,仅供参考