1
這段代碼有什麼問題?jQuery Button沒有被點擊
<!DOCTYPE html>
<html>
<head>
<title>WebService Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="jquery.mobile-1.0.1.min.css" />
<script src="jquery.js"></script>
<script src="jquery.mobile-1.0.1.min.js"></script>
<script type="text/javascript">
$("#Btn").click(function (event) {
alert("Button Clicked");
});
</script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-nobackbtn="false">
<div><a href="index.html">Back</a></div>
</div>
<div data-role="content">
This is the content
</div>
<div data-role="footer">
<a href="#" data-role="button"
data-icon="info" id="Btn">Button</a>
</div>
</div>
</body>