Skip to content

Instantly share code, notes, and snippets.

View fwon's full-sized avatar
🎯
Focusing

Feng Wang fwon

🎯
Focusing
View GitHub Profile
// This function:
function foo() {
var x = 5;
var y = 6;
debugger;
return x + y;
}
@fwon
fwon / WeixinDetection.js
Created May 18, 2016 09:49 — forked from anhulife/WeixinDetection.js
判断网页是否是在微信内嵌浏览器中打开
document.addEventListener('WeixinJSBridgeReady', function(){
//如果执行到这块的代码,就说明是在微信内部浏览器内打开的.
alert('当前页面在微信内嵌浏览器中打开!');
});