检测flash 版本
var nav = navigator; var module = { Plugins: { list: function() { var list = []; if (nav.plugins) { for (var i = 0, l = nav.plugins.length; i < l; i++) { var plugin = {}; if (nav.plugins[i].name) { plugin.name = nav.plugins[i].name; } if (nav.plugins[i].description) { plugin.description = nav.plugins[i].description; } list[list.length] = plugin; } } return list; }, get: function (name) { for (var i = 0, l = nav.plugins.length; i < l; i++) { if (nav.plugins[i].name === name) { return nav.plugins[i]; } } return undefined; }, Flash: { version: function () { var vers = 0; var plugin = module