{"id":19345573,"url":"https://github.com/future-team/jq-paging","last_synced_at":"2026-05-17T05:40:19.855Z","repository":{"id":57281889,"uuid":"61522491","full_name":"future-team/jq-paging","owner":"future-team","description":" pagination for jQuery ","archived":false,"fork":false,"pushed_at":"2020-04-29T22:38:29.000Z","size":262,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-05-15T10:39:34.026Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/future-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-20T06:33:34.000Z","updated_at":"2016-10-25T07:02:42.000Z","dependencies_parsed_at":"2022-08-31T16:22:10.327Z","dependency_job_id":null,"html_url":"https://github.com/future-team/jq-paging","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/future-team/jq-paging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fjq-paging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fjq-paging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fjq-paging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fjq-paging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/jq-paging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fjq-paging/sbom","scorecard":{"id":414722,"data":{"date":"2025-08-11","repo":{"name":"github.com/future-team/jq-paging","commit":"2de3ac09f28c3f24b5aeef7bc687262ae72307e4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-MIT:0","Info: FSF or OSI recognized license: MIT License: LICENSE-MIT:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T23:32:33.632Z","repository_id":57281889,"created_at":"2025-08-18T23:32:33.632Z","updated_at":"2025-08-18T23:32:33.632Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33128841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T04:07:08.158Z","updated_at":"2026-05-17T05:40:19.839Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jq-paging\n pagination for jQuery \n 分页组件\n 关于使用，推荐初始化之后通过setOpts进行不同参数的修改。建议不要重复init\n## UI展示\n - 具体图如下：    \n   总条数，当前页之类提示在左边：  \n   \u003cimg src=\"./img/tip-left.png\" /\u003e    \n   总条数，当前页之类提示在右边：   \n   \u003cimg src=\"./img/tip-right.png\" /\u003e    \n   无提示：  \n   \u003cimg src=\"./img/tip-no.png\" /\u003e  \n   \n## 使用\n - 使用时，应指定在何处插入分页，即传入root对应的选择器，配置项如下：\n \n ```\n       /**\n        * 当前页\n        * */\n       currentPage:1,\n       /**\n        * 每页展示条目数量\n        * */\n       pageSize:5,\n       /**\n        * 总条目数量\n        * */\n       total:20,\n       /**\n        * 分页标签显示个数\n        * */\n       showNum: 5,\n       /**\n        * 插入分页的元素标记\n        * */\n       root:'#pages',\n       /**\n        * 是否显示提示,默认显示\n        * */\n           showTip: true,\n       /**\n        * tip是否显示在左边，true为左false为右，默认为true\n        * */\n           leftTip: true,\n       /**\n        * 点击回调事件\n        * 返回参数为要显示的页数\n        * */\n       clickCallBack: function(num){\n   \n       },\n       /**\n        * 动态改变配置项参数\n        * */\n       setOpts:function(opts){},\n       /**\n         * 是否同步分页，即通过url整体刷新即后端分页\n         * */\n           isLink: false,\n         /**\n          * 配置link参数\n          * */\n         linkOpts:{\n           /**\n            * 基本url,不指定默认location.href\n            * */\n            baseUrl:location.href,\n            /**\n             * 每次需要根据页数改变的key\n             * 例如page = 1 每次更改page。\n             * */\n            key:'page'\n           }\n       \n ```\n 使用实例：\n js:\n \n ```\n \n    import { Paging } from '../../src/index.js';\n    (()=\u003e{\n       new Paging({\n          pageSize:5,\n          total:203,\n          showNum:9,\n          root:'#pages',\n          clickCallBack:function(num){\n             console.log('第'+num+'页');\n          }\n       });\n    })();\n    //实例化后更改配置项\n    let a = Paging({\n          pageSize:5,\n          total:192,\n          showNum:5,\n          showTip:true,\n          leftTip:false,\n          clickCallBack:function(num){\n             location.hash = num;\n             console.log('第'+num+'页');\n          }\n       });\n      a.setOpts({\n        pageSize:6,\n        total:40,\n        showNum:5,\n        clickCallBack:function(num){\n            console.log('第'+num+'页2');\n        }\n      });  \n      \n ```\n html:\n \n ```\n \n    \u003cdiv id=\"root\" style=\"padding: 10px\"\u003e\n        \u003cdiv id=\"pages\" class=\"jq-pages\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n    \n ```\n - 注：若要兼容ie8及以下版本请引入es5-shim。    \n   在html中判断版本，ie9以下引入。例如：    \n  \n  ```\n     \u003c!--[if lt IE 9] \u003e\n     \u003cscript src=\"http://cdn.bootcss.com/es5-shim/4.5.9/es5-shim.js\"\u003e\u003c/script\u003e\n     \u003c!--[endif]--\u003e\n  \n  ```\n## update\n\n   - 0.1.12 新增方法支持后端分页，即配置不同url进行跳转。不通过ajax\n   - 0.1.11 修复临界值bug\n   - 0.1.10 更新setOpts之后分页的bug\n   - 之前版本 init及修复 \n\n## Command\n\n```\n\t#测试\t\n\tnpm run test\t\n\t#打包\t\n\tnpm run build\t\n\t#例子演示\t\n\tnpm run demo\t\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fjq-paging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Fjq-paging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fjq-paging/lists"}