message = "<span style='background: lightpink'>" + username + "</span>：<span class='text-background'>" + document.getElementById('text').value + "</span><br/>";
        websocket.send(message);
        document.getElementById('text').value = "";
    }

    function keyEnter(event) {
        if (event.keyCode == "13") {
            send();
        }
    }
    function clearMsg(){
        document.getElementById('message').innerHTML='';
    }


    /**
     * 获取url参数
     * @param name
     * @retur