Coder Social home page Coder Social logo

Comments (6)

CoderMikeHe avatar CoderMikeHe commented on May 12, 2024

回调是异步的,所以会继续执行。一般好像都没有针对页面销毁,停掉网络请求的处理。当然前提是要保证 控制器要销毁,否侧会有问题。

from wechat.

iWECon avatar iWECon commented on May 12, 2024

emmmm, 我想知道有没有办法手动把这个网络请求停掉, 我看 despose 里面有个 [task cancel]; 但是只有 task 执行完成了才会走, 等于没什么作用.

如果碰到网络较慢的情况的话, 连续走两遍刷新会刷出同样的数据. 或者说当一个页面有多个网络请求的时候, 无法停掉上一个请求会造成数据错乱.(当然有其他方法避免, 但是比较懒~)

from wechat.

CoderMikeHe avatar CoderMikeHe commented on May 12, 2024

嗯嗯 平常大家好像都高度统一的忽略了退出界面取消网络请求了。[笑Cry]

from wechat.

sushushu avatar sushushu commented on May 12, 2024

你们一般是直接拷贝代码进项目直接用吗?

from wechat.

iWECon avatar iWECon commented on May 12, 2024

你们一般是直接拷贝代码进项目直接用吗?

我是照着搭一下,学习一下框架的结构设计

from wechat.

CoderMikeHe avatar CoderMikeHe commented on May 12, 2024

一般会有个人搭建框架的,然后后面的小伙伴就可以直接用了,不用关注内部的实现。

from wechat.

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.