ebsocket.close();
    };

    //将消息显示在网页上
    function setMessageInnerHTML(innerHTML) {
        document.getElementById('message').innerHTML += innerHTML + '<br/>';
    }

    //关闭连接
    function closeWebSocket() {
        websocket.close();
    }

    //发送消息
    function send() {
        if (!document.getElementById('text').value || document.getElementById('text').value === " ") {
            return;
        }
        var username = getQueryString("userName");
        var 