Disable jQuery for mobile devices

前端 未结 3 1531
执念已碎
执念已碎 2020-12-22 13:32

I would like to disable part of my jQuery script for mobile devices, heres the code I\'d like to disable:

$(\'#inner-slide1\').click(function(e) {
    e.prev         


        
3条回答
  •  孤城傲影
    2020-12-22 13:46

    You may try

    MatchMedia.js

    There is details on https://github.com/paulirish/matchMedia.js

    You can load the plugins according to the certain viewport size.

提交回复
热议问题