Tekkaman

导航

 

2017年3月24日

摘要: 【eval】 1、只处理字符串 If the argument of eval() is not a string, eval() returns the argument unchanged. In the following example, the String constructor is 阅读全文
posted @ 2017-03-24 11:42 Tekkaman 阅读(196) 评论(0) 推荐(0)
 
摘要: 【common mistake of closure in loops】 下例中item引用的始终是最后一个值。 function showHelp(help) { document.getElementById('help').innerHTML = help; } function setupH 阅读全文
posted @ 2017-03-24 11:08 Tekkaman 阅读(113) 评论(0) 推荐(0)
 
摘要: 【Emulating private methods with closures】 JavaScript does not provide a native way of doing this, but it is possible to emulate private methods using 阅读全文
posted @ 2017-03-24 10:52 Tekkaman 阅读(276) 评论(0) 推荐(0)