异步情况下的回调使用
摘要:
(function(){ var a=0; //此处有个异步操作,假设response=1 $http.get(url,param).then(function(response){ a=response; console.log("2:"+a) }) (function a(){ console. 阅读全文
posted @ 2016-08-30 18:37 Leepyng 阅读(252) 评论(0) 推荐(0)
posted @ 2016-08-30 18:37 Leepyng 阅读(252) 评论(0) 推荐(0)