Coder Social home page Coder Social logo

建议 about vue-chat HOT 4 OPEN

microzz avatar microzz commented on May 14, 2024
建议

from vue-chat.

Comments (4)

microzz avatar microzz commented on May 14, 2024

@xdwxls 感谢关注,相互学习咯

from vue-chat.

xdwxls avatar xdwxls commented on May 14, 2024

有一个疑问?vuex的state可以用 store.state 可以直接修改,为啥还要commit到mutations ? 你怎么看,大神,我感觉好像就是为了多个组件达到复用

from vue-chat.

microzz avatar microzz commented on May 14, 2024

@xdwxls 你不能直接改变 store 中的状态。改变 store 中的状态的唯一途径就是显式地提交(commit) mutations。这样使得我们可以方便地跟踪每一个状态的变化,从而让我们能够实现一些工具帮助我们更好地了解我们的应用。请看官网http://vuex.vuejs.org/zh-cn/intro.html

from vue-chat.

nothingcode avatar nothingcode commented on May 14, 2024

本地安装 怎么弄?

from vue-chat.

Related Issues (12)

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.