日期:2014-05-16 浏览次数:20417 次
var System = function () { }; System.prototype = { GetIEvision: function () { /// <summary> ///获取IE版本 /// </summary> return navigator.appVersion.match(/MSIE (.)/)[1] || navigator.appVersion.match(/MSIE .\.(.)/)[1]; }, IsArray: function (a) { /// <summary> ///判断是否为数组 /// </summary> return Object.prototype.toString.call(a) === "[object Array]"; }, ptTopx: function (value) { /// <summary> ///将pt转化为px /// </summary> return /pt/.test(value) ? value.replace(/([\d.]+)pt/g, function (str) { return Math.round(parseFloat(str) * 96 / 72) + "px"; }) : value; } }