前端ajax.html代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>异步</title>
</head>
<body>
<form>
<input type="text" name="x" />
+
<input type="text" name="y" />
</form>
<br />
<button>结果</button>
<br />
<input type="text" id="sum" />
</body>
</html>
<script type="text/javascript" src="../../php_bbs/bootstrap-3.3.7-dist/js/jquery-3.3.1.min.js" ></script>
<script type="text/javascript">
$(function(){
$('button').click(function(){ //给按