日期:2014-05-16 浏览次数:20635 次
<html>
<head>
<title></title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
function click2()
{
alert("wwww");
$.ajax({
type: "GET",
url: "del.php",
data: "num=3",
success: function(msg){
alert( "Data Saved: " + msg );
//成功html显示结果
}
});
}
</script>
</head>
<body>
<input type="button" onclick="click2()" value="test">
</body>
</html>