function chatQQ3(){ if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { //移动端打开 window.location.href = "mqqwpa://im/chat?chat_type=wpa&uin=1694208780&version=1&src_type=web&web_src=oicqzone.com"; } else { //pc端打开 window.location.href = "tencent://message/?uin=1694208780&Site=qq&Menu=yes"; } }