diff --git a/index.html b/index.html index 40f42d2..43a7367 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@ - +
diff --git a/js/function.js b/js/function.js index cb09912..650a7f3 100644 --- a/js/function.js +++ b/js/function.js @@ -50,8 +50,8 @@ function Post_Html(url,send) { var request = new XMLHttpRequest(); request.open("post", url,false); - httpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");//设置请求头 注:post方式必须设置请求头(在建立连接后设置请求头) - //httpRequest.send('name=teswe&ee=ef');//发送请求 将情头体写在send中 + request.setRequestHeader("Content-type","application/x-www-form-urlencoded");//设置请求头 注:post方式必须设置请求头(在建立连接后设置请求头) + //request.send('name=teswe&ee=ef');//发送请求 将情头体写在send中 request.send(send); if(request.status==200) { @@ -69,9 +69,9 @@ function Post_Html(url,send) } //获取json -function Get_Json(url) +function Get_Json(html) { - var html = Get_Html(url); + if (html!="") { var json = JSON.parse(html); //Printf(json); diff --git a/testtttttt.html b/testtttttt.html index 505556a..e6b91e0 100644 --- a/testtttttt.html +++ b/testtttttt.html @@ -4,8 +4,8 @@ -