Giter Site home page Giter Site logo

nvm's Introduction

nvm

a mini front-end MVVM framework

简介

通过手动实现一个简单框架雏形,理解当前主流前端框架背后的原理。

  1. 支持特性:数据源、过滤器、事件、多实例、局部刷新、无依赖
  2. 参考Vue的原理,使用最新ES6/7 api,模板语法上 实现了vue指令的一个子集
  3. 支持的指令:n-mode|n-show|n-hide|n-text|n-if|n-for|n-class等
  4. 简洁、轻量、高效、小巧(打包后十几K)

架构图

本项目使用webpack构建,下载代码后,按照下面的步骤,可在本地运行示例

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# visit http://localhost:8080/ in browser

示例

用法说明

nvm's People

Contributors

ancai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.