Commit c2ba2f8f authored by liujiangnan's avatar liujiangnan

feat: 添加日志

parent de51b171
......@@ -45,12 +45,7 @@ $(function(){
$(".log").html("");
});
try {
} catch (e) {
}
var ws = new WebSocket("ws://localhost:8011");
var ws = new WebSocket("ws://localhost:8011/");
ws.onmessage = function(e){
console.log(Date.now(), e.data);
// 返回答题结果
......@@ -62,7 +57,8 @@ $(function(){
// 发送开始答题
const json = {"fun": "answer_start", "uID": 0, "seq": 2, "type": 1};
ws.send(`${JSON.stringify(json)} \n`);
ws.send(`${JSON.stringify(json)} \n`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment