使用socket.io client 开发时兼容IE低版本的办法 socket.io提供了针对各个版本浏览器的‘socket’功能的封转:websocket,长连接,流,flash什么的.给你格式化下代码: if (/Firefox\/\s/.test(navigator.userAgent)){ var socket = io.connect('127.0.0.1:8000',{transports:['xhr-polling']}); } else if (/MSIE (\d+.\d+);/…
<!-- first try HTML5 playback: if serving as XML, expand `controls` to `controls="controls"` and autoplay likewise --> <!-- warning: playback does not work on iOS3 if you include the poster attribute! fixed in iOS4.0 --> <video wi…