{"id":30506448,"url":"https://github.com/dailc/mini-mvvm","last_synced_at":"2025-08-25T17:19:37.422Z","repository":{"id":217185804,"uuid":"119162409","full_name":"dailc/mini-mvvm","owner":"dailc","description":"mvvm模式源码分析，还原一个极简版的双向绑定框架。","archived":false,"fork":false,"pushed_at":"2018-02-05T10:28:15.000Z","size":35,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-15T00:20:31.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/dailc.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}},"created_at":"2018-01-27T12:28:11.000Z","updated_at":"2024-01-15T00:20:37.459Z","dependencies_parsed_at":"2024-01-15T00:30:53.564Z","dependency_job_id":null,"html_url":"https://github.com/dailc/mini-mvvm","commit_stats":null,"previous_names":["dailc/mini-mvvm"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/dailc/mini-mvvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailc%2Fmini-mvvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailc%2Fmini-mvvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailc%2Fmini-mvvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailc%2Fmini-mvvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dailc","download_url":"https://codeload.github.com/dailc/mini-mvvm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailc%2Fmini-mvvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272100966,"owners_count":24873509,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"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":"2025-08-25T17:19:36.575Z","updated_at":"2025-08-25T17:19:37.352Z","avatar_url":"https://github.com/dailc.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mini-mvvm\n\nmvvm模式源码分析，还原一个极简版的双向绑定框架。\n\n## 极简版MVVM示例\n\n这是 hello world 级别的，应该找不到比这更简单的MVVM示例了\n\nhello world系列。\n\n可以分别展开讲述下，从最简单，到后来的一步一步增加\n\n- mvvm_helloworld.html：最原始的mvvm，仅仅有简单的mvvm功能\n\n- mvvm_helloworld2_deep.html：深度递归，可以递归对对象进行监听\n\n- mvvm_helloworld3_event.html：增加了监听的事件绑定，如click等\n\n- mvvm_helloworld4_watch.html：增加了对数据的watch功能\n\n- mvvm_helloworld5_watchergetter.html：重新组织了下代码，优化了下结构\n\n- mvvm_helloworld6_computed.html：增加计算元素功能\n\n- mvvm_helloworld7_class.html：增加普通html、css样式的绑定\n\n- mvvm_helloworld8_list.html：增加支持列表指令以及模版的渲染（没有考虑优化）\n\n- mvvm_helloworld9_if.html：增加if指令的支持\n\n- summary：最后总结归纳了下，拆分为多个文件，便于整体梳理。\n\n基本上，一套走下来，会发现核心仍然是MVVM以及数据监听、DOM劫持等，其余的指令更多的都是附加，并不影响对整体的理解\n\n## AST\u0026VDOM\n\n预计新增AST以及Virtual-Dom功能\n\n[helloworld/mvvm_helloworld.html](helloworld/mvvm_helloworld.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdailc%2Fmini-mvvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdailc%2Fmini-mvvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdailc%2Fmini-mvvm/lists"}