Git Product home page Git Product logo

Comments (5)

hilongjw avatar hilongjw commented on July 26, 2024

建议参考 http://vuejs.org/v2/guide/list.html#key

尝试使用

<div v-for="item in items" :key="item.id">
  <!-- content -->
</div>

from vue-lazyload.

wanwenjin avatar wanwenjin commented on July 26, 2024

好像没有用
我的应用场景
有一个list页面
在点击其中一个item 进入详细画面,数据加载
退出再点击另一个item ,进入详细画面,数据加载
这个时候图片 还是第一个详细画面的图片,其实数据已经更新了

应该是数据没有做绑定

from vue-lazyload.

wanwenjin avatar wanwenjin commented on July 26, 2024

在重新进入后,原来的dom已经生成了 虽然数据更新了 但是没有做绑定 所以控件没有更新最新的数据

from vue-lazyload.

hilongjw avatar hilongjw commented on July 26, 2024

@wanwenjin 对于这个场景可能确实会存在这个问题,马上修复这里

from vue-lazyload.

hilongjw avatar hilongjw commented on July 26, 2024

问题还是在于Vue的更新机制, demo http://hilongjw.github.io/vue-lazyload/ 对于已有dom数据的更新运行正常。demo 源码 : https://github.com/hilongjw/vue-lazyload-run

from vue-lazyload.

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.