摘要: We have code like:var numbers = [1,2,3];for(var i in numbers){ setTimeout(function(){console.log(numbers[i]); }, 0);}//3//3//3Note:1. function... 阅读全文
posted @ 2014-12-17 18:47 Zhentiw 阅读(333) 评论(0) 推荐(0) 编辑
摘要: The ui-router library for AngularJS provides the ability to name views within your application. This is useful for dividing up your application into s... 阅读全文
posted @ 2014-12-17 17:03 Zhentiw 阅读(731) 评论(0) 推荐(0) 编辑
摘要: ui-router has the powerful ability to define abstract states, or states that can't be navigated to, but are useful for defining a set of states with s... 阅读全文
posted @ 2014-12-17 03:30 Zhentiw 阅读(838) 评论(0) 推荐(0) 编辑