AwesomeWM 中的方法和函数有什么区别
在
功能:
awful.screen.getbycoord (x, y) Return the screen index corresponding to the given (pixel) coordinates.
awful.screen.focus (_screen) Move the focus to a screen.
方法
screen:instances () Get the number of instances.
screen:screen () Iterate over screens.
screen:count () Get the number of screens.
谢谢
In each class of AwesomeWM documents there is two section. Methods and Functions. Whats the difference between the two. I searched in the lua document and can't found anything there either. Here is a sample
Functions:
awful.screen.getbycoord (x, y) Return the screen index corresponding to the given (pixel) coordinates.
awful.screen.focus (_screen) Move the focus to a screen.
Methods
screen:instances () Get the number of instances.
screen:screen () Iterate over screens.
screen:count () Get the number of screens.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://www.codecademy.com/article/fwd-js-methods-功能
函数 - 执行任务的一组指令。
方法 - 一组与对象相关联的指令。
https://www.codecademy.com/article/fwd-js-methods-functions
Function — a set of instructions that perform a task.
Method — a set of instructions that are associated with an object.