企业微信考勤机有时候无法连接,可以使用下面代码来测试下网络情况 
<html>
<head>
<title>测试wss</title>
</head>
<body>
<div>测试连接微信wss://openhw.work.weixin.qq.com:443</div>
<button onclick="test()">连接</button>
<script>
function test()
{
var ws=new WebSocket("wss://openhw.work.weixin.qq.com:443/");
ws.onopen = function(e) {
    alert('连接成功');
};
ws.onerror = function(e) {
    alert('连接失败');
};
}
</script>
</body>
</html>

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2021-07-16
  • 2021-11-19
  • 2022-12-23
  • 2021-09-01
猜你喜欢
  • 2021-12-18
  • 2021-10-30
  • 2021-12-18
  • 2021-12-28
  • 2021-11-20
相关资源
相似解决方案