var global = global || {}; var module = module || {}; if(!(window.console && console.log)) { (function() { var noop = function() {}; var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupcollapsed', 'groupend', 'info', 'log', 'marktimeline', 'profile', 'profileend', 'marktimeline', 'table', 'time', 'timeend', 'timestamp', 'trace', 'warn']; var length = methods.length; var console = window.console = {}; while(length--) { console[methods[length]] = noop; } }()); }; var ww, wh, coverprofile, customdebug; var $temp, temps; var image_width = 1440, image_height = 810, table_extra_height = 200, tween_page_time = 800, tween_slogen_time = 400, tween_navi_time = 400, mouse_wheel_interval = 1200; hashes = ['home', 'detail', 'detail', 'detail', 'detail', 'config', 'preserve']; var grabmousewheel = false, lockmousewheel = false, lock = true, panmark = false; var starttime = new date().gettime() - mouse_wheel_interval; /* ** randomword 产生任意长度随机字母数字组合 ** randomflag-是否任意长度 min-任意长度最小位[固定位数] max-任意长度最大位 ** xuanfeng 2014-08-28 */ function randomword(randomflag, min, max) { var str = "", range = min, arr = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; // 随机产生 if(randomflag) { range = math.round(math.random() * (max - min)) + min; } for(var i = 0; i < range; i++) { pos = math.round(math.random() * (arr.length - 1)); str += arr[pos]; } return str; } $('#cars').on('change', function() { btn.off('click', window.ptfun); formreset(['_xindihao', '_gl', '_rs', '_gs', '_ev'][this.selectedindex]); });