日期:2014-05-16 浏览次数:20378 次
function () {
var flash = "0.0";
if (!!navigator.userAgent.match(/AppleWebKit.*Mobile.*/)) {
b = "modbile";
}
if (navigator.plugins && navigator.mimeTypes.length) {
var s = navigator.plugins["Shockwave Flash"];
s && s.description && (flash = s.description.replace(/^.*\s+(\S+)\s+\S+$/, "$1"))
}
else if (window.ActiveXObject) {
try {
var ss = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
ss && (b = ss.GetVariable("$version")) && (flash = b.replace(/^.*\s+(\d+),(\d+).*$/, "$1.$2"))
}
catch (e) { }
}
var result = [],
str = '"12.0.0" "12" "11" "5" "6" "7" "8" "12.0" "9.7" "12.1"';
str.replace(/"\s*\d+\.\d\s*"/g,function(a){
result.push(a);
})
alert(result);