Giter Site home page Giter Site logo

vuex-for-beginner's Introduction

前言

这是针对初学vuex最基础的案例,完全将官网的案例通过模块化的方式进行1:1展示,并做相关功能的详细注释,相信通过这个基本可以了解vuex大致的使用

A VueX project

项目运行

Build Setup

# install dependencies
npm install

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

说明

  • 项目中未使用vue-loader,所有展现效果均在一张界面。
  • 关于modules的简单说明:由于使用单一状态树,应用的所有状态会集中到一个比较大的对象。当应用变得非常 复杂时,store 对象就有可能变得相当臃肿。为了解决以上问题,Vuex 允许我们将 store 分割成模块(module)。
  • 案例只做了 statte,getter,mutation,action,至于module这部分,会在后面专门做一个案例来说明。
  • 如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢! ^_^

作者推荐

vuex-for-beginner's People

Contributors

ewk1210 avatar

Watchers

James Cloos 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.