krave1986 / awesome-weixin Goto Github PK
View Code? Open in Web Editor NEW积累各种在微信开发中,涉及的内容
积累各种在微信开发中,涉及的内容
安卓手机上,微信所使用的浏览器内核是 x5 内核。
x5的官网上,提供了“无法加载x5内核的解决方案”。
文档名字叫:HowToLoadX5Core.doc
其中提到了,访问这个网页
http://soft.imtt.qq.com/browser/tes/feedback.html
显示000000的话,表示手机加载的是系统内核,如果是大于0的数字,表示加载了 x5 内核。
检查了一下这个网页,其内容非常简单,无非就是检查 navigator 字符串中,是否包含 TBS/ ;以及TBS/ 后面跟的数字。
源代码如下
function Init() {
var ua = navigator.userAgent;
var version = "000000";
var key = "TBS/";
var start = ua.indexOf(key);
if (start !== -1) {
start = start + key.length;
version = ua.substr(start, ua.indexOf(" ", start) - start);
}
var ele = document.getElementById("version");
var p = document.createElement("p");
p.innerHTML = "<b>" + version + "</b>";
ele.appendChild(p);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.