$(function(){ //獲取瀏覽器寬度 var _width = $(window).width(); if(_width < 1024){ $(".hide-nav").hide(); $(".undefined02").hide(); $(".undefined01").hide(); $(".flay1").removeClass("flay1").addClass("flay2"); $(".carousel-control-gps").hide(); $(".hui-reminder").removeClass("hui-reminder").addClass("hui-reminder-phone");// $(".hide-foot").hide();
為了響應式適配移動端,寫了一坨js的hide代碼,是不是很爛?實習生
慕田峪7331174
2018-08-10 09:10:27