先说一下想要的效果:
lazyMan('zz').eat('lunch').sleep('3').eat('dinner')输出:
Hi!This is zz!
Eat lunch~
//有3s间隔等待
Wake for 3s!
Eat dinner~
下面是代码: