Giter VIP home page Giter VIP logo

vue's Introduction

Vue

生命周期

最近在写东西的时候一直在纠结在生命周期的哪一个阶段来向后台请求数据:经过网上的学习,可以得出结论。一般情况下在created这个生命周期里请求数据,然后和dom一起渲染。但是如果说依赖dom去做一些操作name就在mounted里面做响应的处理。 参考自:

https://segmentfault.com/a/1190000008010666

积累

组件脚本中的data可以是一个返回Object对象的函数,也可以是一个对象的属性。 组件切换可以用component标签与组件绑定动态显示组件,通过绑定:is来显示对应的组件 路由的使用可以使用动态的路由,而不依赖于是否写完了所有页面。 使用Element 的表格组件的时候 会出现表头和表内容对不齐的情况。需要重新覆盖原先的样式 使用Element 的表单验证的是有加入blur 会导致读取表中数据失败

vue's People

Contributors

eamonzhong avatar

Watchers

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