当前位置:网站首页>忽略微信设置字体
忽略微信设置字体
2022-07-29 01:16:00 【kilito_01】
// 忽略微信设置字体
function ignoreWechatFontSize() {
if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
handleFontSize();
} else {
if (document.addEventListener) {
document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
} else if (document.attachEvent) {
document.attachEvent("WeixinJSBridgeReady", handleFontSize);
document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
}
}
}
function handleFontSize() {
// 设置网页字体为默认大小
WeixinJSBridge.invoke('setFontSizeCallback', {
'fontSize': 0
});
// 重写设置网页字体大小的事件
WeixinJSBridge.on('menu:setfont', function() {
WeixinJSBridge.invoke('setFontSizeCallback', {
'fontSize': 0
});
});
}
边栏推荐
- Explanation of yocto project directory structure
- How companies make business decisions -- with the help of data-driven marketing
- Practical experience of Google cloud spanner
- 知道创宇上榜CCSIP 2022全景图多个领域
- Covering access to 2w+ traffic monitoring equipment, EMQ creates a new engine for the digitalization of all elements of traffic in Shenzhen
- 移动通信——基于卷积码的差错控制系统仿真模型
- What is browser fingerprint recognition
- Some summaries of ibatis script and provider
- Day01作业
- 数学建模——永冻土层上关于路基热传导问题
猜你喜欢

Using local cache + global cache to realize user rights management of small systems

Ciscn 2022 central China Misc

覆盖接入2w+交通监测设备,EMQ为深圳市打造交通全要素数字化新引擎

为什么 BI 软件都搞不定关联分析
![[golang] synchronization lock mutex](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[golang] synchronization lock mutex

Where will Jinan win in hosting the first computing power conference?

JVM learning minutes

druid. The performance of IO + tranquility real-time tasks is summarized with the help of 2020 double 11

(arxiv-2018) 重新审视基于视频的 Person ReID 的时间建模

Covering access to 2w+ traffic monitoring equipment, EMQ creates a new engine for the digitalization of all elements of traffic in Shenzhen
随机推荐
Google Cloud Spanner的实践经验
Use POI to export excel file, image URL to export file, image and excel file to export compressed package
StoneDB 邀请您参与开源社区月会!
What is browser fingerprint recognition
Nine days later, we are together to focus on the new development of audio and video and mystery technology
Talk about possible problems when using transactions (@transactional)
[web technology] 1395 esbuild bundler HMR
正则过滤数据学习笔记(①)
[golang] network connection net.dial
Sword finger offer special assault edition day 13
【7.21-26】代码源 - 【体育节】【丹钓战】【最大权值划分】
DSP vibration seat
【10点公开课】:快手GPU/FPGA/ASIC异构平台的应用探索
Web crawler API Quick Start Guide
【流放之路-第五章】
Planning mathematics final exam simulation II
Number of consecutive subarrays with leetcode/ and K
The basic concept of transaction and the implementation principle of MySQL transaction
把逻辑做在Sigma-DSP中的优化实例-数据分配器
Some summaries of ibatis script and provider