GithubHelp home page GithubHelp logo

bonjour-travel / bonjour Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 7.0 12.67 MB

Awesome bonjour web project created with Vue2.x + Vuex + Vue-router + axios

License: MIT License

JavaScript 22.42% HTML 0.48% Vue 77.11%
vue

bonjour's People

Contributors

shudery avatar

Stargazers

 avatar

Watchers

 avatar  avatar

bonjour's Issues

通过数据驱动视图,不走操作DOM的老路

  • 之前给不同标签加随机颜色是通过操作dom赋值class的方式,其实并不可取。
  • dom操作需要关注何时dom渲染完成的问题,也存在数据update之后需要重置对dom的修改,另外调试过程中热加载组件只触发mounted,所以往往还需要在该周期加上dom操作函数。
  • 正确的姿势应该是将需要的dom操作全都封装成数据和模板,通过数据来自动渲染。

Check code in commit #4b5cc5e

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.