Giter VIP home page Giter VIP logo

Comments (2)

cougarwww avatar cougarwww commented on August 17, 2024

在observer里console了一下,初始化的时候 this.test 还是 undefined, 所以赋值应该没效果了,我猜应该是初始化的顺序问题, 换个思路,用到text的地方直接用item.text呢?

from mpx.

wayne0201 avatar wayne0201 commented on August 17, 2024

在observer里console了一下,初始化的时候 this.test 还是 undefined, 所以赋值应该没效果了,我猜应该是初始化的顺序问题, 换个思路,用到text的地方直接用item.text呢?

不是说直接用item.text的问题,这个只是我为了说清问题,简化的一个demo。用watch什么的可以实现功能。功能的话怎么实现都可以实现过去。而是想提醒一下,这块你们做的封装是不是里面有疏漏的地方,可以去看下,完善下去这样才能更好用实用。

from mpx.

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.