摘要: They’ve got a problem with their existing code, which tries to use a closure. Check it out: function assignLaser( shark, sharkList ){ var stationAssig 阅读全文
posted @ 2014-08-04 20:57 Zhentiw 阅读(208) 评论(0) 推荐(0) 编辑
摘要: function buildCoveTicketMarker(transport){ var passengerNumber = 0; return function(name){ passengerNumber++; alert("Ticket via the " +transport+ "Wel 阅读全文
posted @ 2014-08-04 20:15 Zhentiw 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Returning a function from a function, complete with variables from an external scope, is called a closure. The entire contents of one of these inner f 阅读全文
posted @ 2014-08-04 18:33 Zhentiw 阅读(469) 评论(0) 推荐(0) 编辑
摘要: It's finally time to start building out our Appointment app. We're going to be using a collection and a collection view to display a list of appointme 阅读全文
posted @ 2014-08-04 05:13 Zhentiw 阅读(223) 评论(0) 推荐(0) 编辑