how to call different jquery actions in responsive design

前端 未结 6 612
情深已故
情深已故 2020-12-29 12:35

I\'m at the point to convert my project into an responsive design.

What is the most handy and universal solution do you suggest to implement different jQuery-blocks

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 13:16

    $('#selector').click(function() {
        if (parseInt($(window).width()) < 320) {
            ...
        }
    });
    

提交回复
热议问题