Giter VIP home page Giter VIP logo

Comments (2)

errorrik avatar errorrik commented on July 17, 2024 1

created 意味着在创建过程中,语义是创建视图节点了。这时候数据变化,需要对生成的视图结构重新生成,是不合理的,会带来其他问题。

建议在 inited 中初始化数据。

其实,Page 组件不是用 c-person,而是用 div 当 root element,可以解决这个问题。这个涉及到视图初始化过程对于不同节点的创建顺序,不展开了。

还是建议在 inited 中初始化数据。

from san.

zhengmz avatar zhengmz commented on July 17, 2024

这个可能是因为 rawData 是一个 Object,所以 created 中应该使用以下语句

this.data.set("rawData.title", "created title");

from san.

Related Issues (20)

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.