BN089-BS开发框架MVC4版/source20131023/Zephyr.Web/Content/js/kissy/flash.js
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright 2011, KISSY UI Library v1.20
MIT Licensed
build time: Nov 28 12:39
*/
/**
* @module Flash 全局静态类
* @author kingfo<oicuicu@gmail.com>
*/
KISSY.add('flash/base', function(S) {
return {
/**
* flash 实例 map { '#id': elem, ... }
* @static
*/
swfs: { },
length: 0,
version:"1.3"
};
});
/**
* @module Flash UA 探测
* @author kingfo<oicuicu@gmail.com>
*/
KISSY.add('flash/ua', function(S, UA) {
var fpv, fpvF, firstRun = true;
/**
* 获取 Flash 版本号
* 返回数据 [M, S, R] 若未安装,则返回 undefined
*/
function getFlashVersion() {
var ver, SF = 'ShockwaveFlash';
// for NPAPI see: http://en.wikipedia.org/wiki/NPAPI
if (navigator.plugins && navigator.mimeTypes.length) {
ver = (navigator.plugins['Shockwave Flash'] || 0).description;
}
// for ActiveX see: http://en.wikipedia.org/wiki/ActiveX
else if (window.ActiveXObject) {
try {
ver = new ActiveXObject(SF + '.' + SF)['GetVariable']('$version');
} catch(ex) {
//S.log('getFlashVersion failed via ActiveXObject');
// nothing to do, just return undefined
}
}
// 插件没安装或有问题时,ver 为 undefined
if (!ver) return undefined;
// 插件安装正常时,ver 为 "Shockwave Flash 10.1 r53" or "WIN 10,1,53,64"
return arrify(ver);
}
/**
* arrify("10.1.r53") => ["10", "1", "53"]
后面还有 459 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
