<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>请求</title>
<script src="./util.js"></script>
</head>
<body>
<ul id="wrap"></ul>
<script>
//接口:119.29.216.85:20001/SqlServer/GetServer
util.post('http://119.29.216.85:20001/SqlServer/GetServer',null,function(resp){
console.log(resp)
})
</script>
</body>
</html>
首页in.html进入
调用的封装好的util.js
//避免重名
var util ={
get:function(url,query,callback,isJson) {
if(query){
url +=&#