摘要: ```javascript function memory(val) { if(!memory.cached) {//判断是否创建了缓存 memory.cached = {}; } if(memory.cached[val] !== undefined) {//检查传的值是否在对象中 return 阅读全文
posted @ 2018-05-11 00:15 seafwg 阅读(319) 评论(0) 推荐(0)