Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 第一种写法
- function fun1()
- print("fun1")
- end
- function fun2()
- print("fun2")
- end
- dog1 = hs.location.new(fun1)
- dog1.start()
- dog2 = hs.location.new(fun2)
- dog2.start()
- -- 第二种写法
- function fun1()
- print("fun1")
- end
- function fun2()
- print("fun2")
- end
- function fun3()
- fun1()
- fun2()
- end
- dog = hs.location.new(fun3)
- dog.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement