{"id":17970256,"url":"https://github.com/hellokaton/mini-jq","last_synced_at":"2025-03-25T11:31:17.318Z","repository":{"id":86662150,"uuid":"92604772","full_name":"hellokaton/mini-jq","owner":"hellokaton","description":"🍣 mininal jquery, you don't need jquery!","archived":false,"fork":false,"pushed_at":"2017-05-30T14:13:03.000Z","size":19,"stargazers_count":21,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T01:41:40.118Z","etag":null,"topics":["ajax","dom","jquery","minimal"],"latest_commit_sha":null,"homepage":"","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/hellokaton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-27T14:47:49.000Z","updated_at":"2023-11-07T12:45:40.000Z","dependencies_parsed_at":"2023-02-28T18:30:22.866Z","dependency_job_id":null,"html_url":"https://github.com/hellokaton/mini-jq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellokaton%2Fmini-jq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellokaton%2Fmini-jq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellokaton%2Fmini-jq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellokaton%2Fmini-jq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellokaton","download_url":"https://codeload.github.com/hellokaton/mini-jq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245453870,"owners_count":20617933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ajax","dom","jquery","minimal"],"created_at":"2024-10-29T15:02:33.349Z","updated_at":"2025-03-25T11:31:17.299Z","avatar_url":"https://github.com/hellokaton.png","language":"JavaScript","readme":"# mini-jq\n\n迷你版jquery\n\n## 使用\n\n```js\n$(document).ready(function () {\n    var html = $('#container').html();\n    console.log(html);\n\n    var text = $('#container h1').text();\n    console.log('h1 的文本是 =\u003e ' + text);\n\n    $('#list li').each(function (index, item) {\n        console.log($(item).text());\n    });\n\n    console.log('第2个节点的文本是 =\u003e ' + $('li').eq(1).text());\n    console.log('最后一个节点的文本是 =\u003e ' + $('li').last().text());\n\n    console.log('username =\u003e ' + $('#username').val());\n\n    $('#changeText').on('click', function () {\n        console.log('点击按钮后 username =\u003e ' + $('#username').val());\n    });\n\n//        $.ajax({\n//            url: 'https://api.github.com/users/biezhi',\n//            method: 'get',\n//            dataType: 'json',\n//            success: function (response) {\n//                console.log(response);\n//            },\n//            error: function (e) {\n//                console.error(e);\n//            }\n//        });\n\n    $.getJSON('https://api.github.com/users/biezhi', function (response) {\n        console.log(response);\n    });\n\n});\n```\n\n## 参考资料\n\n- https://blog.garstasio.com/you-dont-need-jquery/selectors\n- https://github.com/oneuijs/You-Dont-Need-jQuery\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellokaton%2Fmini-jq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellokaton%2Fmini-jq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellokaton%2Fmini-jq/lists"}