<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<script>
var supported = ("WebSocket" in window);
if (supported) alert("Supported WebSocket");
</script>
</head>
<body>
</body>
</html>
站內搜尋
Friday, June 16, 2017
[HTML][JavaScript] 超簡單 檢測瀏覽器是否有支援 WebSocket
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment