/*!function(e) { function t() { var t = n.clientwidth, r = "}"; !navigator.useragent.match(/android|blackberry|iphone|ipad|ipod|opera mini|iemobile/i) && t > 1024 && (t = 640, r = ";margin-right:auto!important;margin-left:auto!important;}"), e.rem = t / 10, /zte u930_td/.test(navigator.useragent) && (e.rem = 1.13 * e.rem), /android\s+4\.4\.4;\s+m351\s/.test(navigator.useragent) && (e.rem = e.rem / 1.05), /android\s+5\.0\.1;\s+mx4\s/.test(navigator.useragent) && (e.rem = 1.06382 * e.rem), i.innerhtml = "html{font-size:" + e.rem + "px!important;}body{font-size:" + 12 * (t / 320) + "px" + r; } var n = document.documentelement, i = document.createelement("style"); n.firstelementchild.appendchild(i), e.addeventlistener("resize", function() { t(); }, !1), e.addeventlistener("pageshow", function(e) { e.persisted && t(); }, !1), t(); }(window);*/ /*!function ($){ var _w=$(window).width()>=640?640:$(window).width(); var fontpercent=_w/40;//16px; $('html').css('font-size',fontpercent); $(window).resize(function(){ var _w=$(window).width()>=640?640:$(window).width(); var fontpercent=_w/40;//16px; $('html,body').css('font-size',fontpercent); }) }(jquery);*/ !function ($){ var _w=$(window).width()>=640?640:$(window).width(); var fontpercent=_w/40;//16px; $('html').css('font-size',fontpercent); $(window).resize(function(){ var _w=$(window).width()>=640?640:$(window).width(); var fontpercent=_w/40;//16px; $('html,body').css('font-size',fontpercent); }) }(jquery); function ajx(url , type , datatype , data , successfn , errorfn) {//ajax封装 data = (data==null || data=="" || typeof(data)=="undefined") ? {"date": new date().gettime()} : data; $.ajax({ type: type, async:false, url: url, data: data, datatype : datatype, success: function(d){ successfn(d); }, error: function(e){ errorfn(e); } }); }