1 Private voidWs_newmessagereceived (websocketsession session, String value)2 {3dictionary<string, string> res = login (value, session, This) as Dictionary<string, string>;4 Switch(res["Send"])5 {6 Case"0":7Res. Remove ("Send");8Send (RES);//Send all9 Break;Ten Case"1": OneRes. Remove ("Send"); AString username = res["to"]; -websocketsession keys = userlist. Where (q = = Q.value = = username). Select (q =Q.key). First (); -SendTo (keys, res);//for Send the Break; -}
HTML5 the default declaration is
[HTML]View Plaincopy print?
- <! DOCTYPE HTML>
The JSP default declaration header is
[HTML]View Plaincopy print?
- <%@ page contenttype="Text/html;charset=utf-8" language="java"%>
- <html>
Here is not the same, if the two pages to write the same HTML code and style, the JSP page display will be different from the HTML5 page, then as long as the JSP page declaration to change the following can be
[HTML]View Plaincopy print?
- <%@ page contenttype="Text/html;charset=utf-8" language="java"%>
- <! DOCTYPE HTML>
About HTML5 the same HTML code as the JSP page does not show the same page effect