标签:about blog receive ref -name use nts this send
1 private void Ws_NewMessageReceived(WebSocketSession session, string value) 2 { 3 Dictionary<string, string> res = login(value, session, this) as Dictionary<string, string>; 4 switch (res["send"]) 5 { 6 case "0": 7 res.Remove("send"); 8 Send(res);//全部发送 9 break; 10 case "1": 11 res.Remove("send"); 12 string username = res["to"]; 13 WebSocketSession keys = userlist.Where(q => q.Value == username).Select(q => q.Key).First(); 14 SendTo(keys, res);//针对发送 15 break; 16 }
html5默认的声明为
jsp默认的声明头部为
这里就不一样了,如果两个页面写同样的html代码及样式,jsp页面展示的效果会跟html5页面不一样,这时只要在jsp页面的声明改为下面即可
关于html5与jsp页面同样的html代码展示的页面效果不一样的问题
标签:about blog receive ref -name use nts this send
原文地址:http://www.cnblogs.com/bdqczhl/p/6043347.html