异步发送的请求---取消操作
摘要:本人在项目中使用到axios和ajax两种发送异步请求的方式: 下面先谈谈使用axios发送异步请求的取消操作: 使用 cancel token 取消请求 Axios 的 cancel token API 基于cancelable promises proposal,它还处于第一阶段。 可以使用 C
阅读全文
HTML attribute 与 DOM property 的对比
摘要:HTML attribute vs. DOM property 要想理解 Angular 绑定如何工作,重点是搞清 HTML attribute 和 DOM property 之间的区别。 attribute 是由 HTML 定义的。property 是由 DOM (Document Object
阅读全文