实现函数LazyMan,使得:LazyMan('Hank'); 输出Hi Hank!LazyMan('Hank').eat('dinner');输出Hi Hank!Eat dinner!LazyMan('Hank').sleep(5).eat('dinner'); 输出:Hi Hank!//等待五秒Eat dinner!LazyMan('Hank').sleepFirst(5).eat('dinner');输出://等待五秒Hi Hank!Eat dinner!
添加回答
举报
0/150
提交
取消