lsc hace 2 años
padre
commit
ab1cd2f57b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      js/Desktop/DeskTop.js

+ 2 - 2
js/Desktop/DeskTop.js

@@ -3947,8 +3947,8 @@ U.MD.D.I.setContents = function (cid, s, task, t, uid, type,text, loading,span)
     // xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
     xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
     xmlhttp.send();
-    xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
+    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
     // 设置请求头,表示请求体的编码格式
-    xhr.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type);
+    xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type);
     // 设置请求体,使用url-encoded格式的数据
 }