...
|
...
|
@@ -215,6 +215,28 @@ function isLogin() { |
|
|
}
|
|
|
}
|
|
|
|
|
|
function isIE() {
|
|
|
return /msie|trident/i.test(navigator.userAgent);
|
|
|
}
|
|
|
|
|
|
function isIEVer(version) {
|
|
|
var ver = '';
|
|
|
|
|
|
var getVersion = function(regex) {
|
|
|
var ua = navigator.userAgent;
|
|
|
var match = ua && ua.match(regex);
|
|
|
|
|
|
return (match && match.length > 1 && match[1]) || '';
|
|
|
};
|
|
|
|
|
|
if (isIE()) {
|
|
|
ver = getVersion(/(?:msie |rv:)(\d+(\.\d+)?)/i);
|
|
|
return ver === version;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// 品友
|
|
|
function addPyEvent(eventName, val) {
|
|
|
if (typeof window.py === 'function') {
|
...
|
...
|
@@ -247,6 +269,10 @@ window.registerUrl = registerUrl; |
|
|
|
|
|
window.jumpUrl = jumpUrl;
|
|
|
|
|
|
window.isIE = isIE;
|
|
|
|
|
|
window.isIE8 = isIEVer('8.0');
|
|
|
|
|
|
window.once = once;
|
|
|
window.addPyEvent = addPyEvent;
|
|
|
|
...
|
...
|
|