<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
function onclick1() {
alert(document.getElementById("textbox1").value);
}
</script>
</head>
<body>
<input type="text" id="textbox1" />
<input type="button" value="请点击" onclick="onclick1()"/>和
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
function onclick1() {
alert(document.getElementById("textbox1").value);
}
</script>
</head>
<body>
<input type="text" id="textbox1" />
<input type="button" value="请点击" onclick="onclick1"/>的区别
一直搞不懂onclick等这些事件中后面的函数到底要不要加括号,谁能系统的给我讲一下。谢谢了
<head>
<title></title>
<script type="text/javascript">
function onclick1() {
alert(document.getElementById("textbox1").value);
}
</script>
</head>
<body>
<input type="text" id="textbox1" />
<input type="button" value="请点击" onclick="onclick1()"/>和
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
function onclick1() {
alert(document.getElementById("textbox1").value);
}
</script>
</head>
<body>
<input type="text" id="textbox1" />
<input type="button" value="请点击" onclick="onclick1"/>的区别
一直搞不懂onclick等这些事件中后面的函数到底要不要加括号,谁能系统的给我讲一下。谢谢了
解决方案 »
- 请问C#该多用数组还是list?
- 关于学习ASP.NET的问题
- 当没有数据时,怎么让gridview的页眉和页脚显示出来?
- 在ASP.NET中如何找出表中某字段值为空(Null)的记录?
- vs2005中如何将新建的网站在wwwroot目录中,同时发布后也在wwwroot?急!
- TreeView显示问题,急!!!
- 哪位可以告诉我注册后自动发送确认邮件是怎么样实现的吗?
- 谁写过排行榜代码!人民币求排行榜代码(急要现成的)!
- 提示说div为空,怎么回事?
- 网站A向网站B发送请求,网站B处理很长时间,再返回给网站B,如果用户关闭这个网页后如何还取得网站B返回的数据?
- 关于SQLDataAdapter的问题
- 寻高手解释asp.net代码,在下是做java的
没看懂,onclick不就是点击事件吗,点击就触发onclick1()