当前位置:网站首页>Determine whether it is a web page opened on wechat
Determine whether it is a web page opened on wechat
2022-06-25 19:40:00 【Bin daotianxia】
var ua = window.navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
alert(' Opened by wechat ')
}else{
alert(' Not opened by wechat ')
}

Attach a picture , Open in browser
边栏推荐
- 【历史上的今天】6 月 25 日:笔记本之父诞生;Windows 98 发布;通用产品代码首次商用
- Go language installation and uninstallation
- DARKHOLE 2
- Vulnhub range - the planes:venus
- QQ机器人疫情查询/疫情关注等【最新beta2版本】
- ECS 7-day practical training camp (Advanced route) -- day01 -- setting up FTP service based on ECS
- What are Baidu collection skills? 2022 Baidu article collection skills
- JVM|运行时数据区(堆空间)
- Shell jump loop shift parameter left use of function
- Yum command
猜你喜欢

Elastic high-performance computing on the cloud supports the rapid development of the life science industry, reducing costs and increasing efficiency

Kotlin Compose 终结toDo项目 点击可以编辑修改todo

DARKHOLE 2

rmi-registry-bind-deserialization

PostgreSQL user role permissions

Huawei released two promotion plans to promote AI talent development and scientific research innovation

为什么生命科学企业都在陆续上云?

Trend ea- fixed stop loss and profit per order

Vulnhub range the planes: mercury

Vulnhub range - darkhole 1
随机推荐
Record Baidu search optimization thinking analysis
ECS 7-day practical training camp (Advanced route) -- day03 -- ecs+slb load balancing practice
Guangzhou Sinovel interactive creates VR Exhibition Hall panoramic online virtual exhibition hall
QQ机器人官方插件加载配置方法【beta2版本】
Solidity get quarterly time
Gbpnzd firm offer for 14 months, simulation for 19 months, test stable
DataX script task development record
In 2021, China's private equity market is growing, and the scale of private equity fund management reaches 19.78 trillion yuan [figure]
Jump jump games auxiliary (manual version) py code implementation
1、 Hikaricp source code analysis of connection acquisition process I
Genicam gentl standard ver1.5 (1)
Google SEO external chain releases 50+ website platform sharing (e6zzseo)
One night I worked as an XPath Terminator: XPath Helper Plus
ECS 7-day practical training camp (Advanced route) -- day04 -- build a portal using ECs and polardb
Android Development Notes - Quick Start (from sqllite to room licentiousness) 2
PHP FPM, workman, spoole, golang simple performance test
请问通达信开户安全吗?
Verification code native JS canvas
五、HikariCP源码分析之初始化分析二
QQ robot official plug-in loading configuration method [beta2 version]