preface

So I want to implement a page-turning plug-in based on jQuery. The plug-in uses anonymous immediately execute functions to avoid contamination of global variables. The function is as modular as possible

function

  • Completed function
    • Click “Previous” to scroll up
    • Click “Next page” to scroll down
    • Click on a page to go to

rendering

Only one page

More pages

harvest

Familiar with the use of some jQuery methods such as $.fn.extend $.extend and so on code coupling degree is low function modular as far as possible

The project address

Making address: https://github.com/cxuhwiuefhuefu/pagePlugin welcome to start