摘要: 1. Model is everything models are the heart of your app. If you have models separated from th rest of your application, maintaince will be much easier 阅读全文
posted @ 2019-03-09 22:56 wust_hy 阅读(200) 评论(0) 推荐(0) 编辑
摘要: JavaScript的网络请求是异步的,即网络请求不会阻塞当前 js 代码的继续执行,而是通过回调的方式,在网络请求的代码块中注入回调函数,当网络请求完成,会触发相应的事件,通过触发事件来执行注册的回调函数。回调的执行时间是不确定的,因此会影响程序的执行逻辑,另一方面,如果回调依赖过多,或导致很深的 阅读全文
posted @ 2019-03-09 14:59 wust_hy 阅读(435) 评论(0) 推荐(1) 编辑