23 lines
486 B
HTML
23 lines
486 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Insert title here</title>
|
|
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$("#btn").{"name":"伍名"}click(function(){
|
|
$.post("json",function(data){
|
|
alert(data);
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form action="hello" method="post">
|
|
name:<input type="text" name="name">
|
|
<input type="submit" value="submit">
|
|
</form>
|
|
</body>
|
|
</html> |