实现函数LazyMan,使得:
LazyMan('Hank'); 输出
Hi Hank!
LazyMan('Hank').eat('dinner');输出
Eat dinner!
LazyMan('Hank').sleep(5).eat('dinner'); 输出:
//等待五秒
LazyMan('Hank').sleepFirst(5).eat('dinner');输出:
相关分类