$(window).resize(function() { $(function() { // var _w = parseint($(window).width()); //获取浏览器的宽度 var win = $(this).width(); console.log(win) }); }).trigger('resize'); // window.onresize = function() { // if (window.innerwidth < 500) { // document.getelementbyid("link").classname = "nohover"; // } else { // document.getelementbyid("link").classname = ""; // } // } /*****/ /* luxy.init({ wrapper: '.scrollbar', targets: '.luxy-el', wrapperspeed: '0.07', }); */ $('*').on('touchstart', function() { $(this).trigger('hover'); console.log("hover") }).on('touchend', function() { $(this).trigger('hover'); console.log("hovers") }); // $(document).ready( // function() { // $(div.menuhead).click( // function() { //切换菜单,但不要在隐藏选择器中使用.not() // $(this).siblings(div.menu).toggle(); // $(div.menuhead).not($(this)).siblings(div.menu).hide(); // }); // }); var scrlllist = new swiper("#scrlllist", { spacebetween: 30, speed: 3000, loop:true, // freemode: true, slidesperview: "auto", autoplay: { delay: 3000, disableoninteraction: false, } });