日期:2014-05-16 浏览次数:20422 次
<script type="text/javascript" src="../javascript/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
(function () {
alert(111);
});
</script>
<body>
<form id="form1" runat="server">
<div>
<input type="text" id="txtUserName" />
<input type="button" id="btnLogin" />
</div>
</form>
</body>
</html>
<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript">
$(function () {
$("#btnLogin").click(function () {
alert($("#txtUserName").val());
});
});
</script>