I would call them element selector methods or element retrieval methods. You need to be careful using the term "selector" though as that is a very common term used in conjunction with jQuery. You won't want to mislead anyone into thinking that you are talking about jQuery selectors.
Also, I used the term method instead of function because that is how they are defined at w3c.
At the end of the day, it isn't likely going to matter, as long as you clearly communicate your message and/or intent.
发布评论
评论(1)
我将它们称为元素选择器方法或元素检索方法。您需要小心使用术语“选择器”,因为这是与 jQuery 结合使用的非常常见的术语。您不想误导任何人认为您正在谈论 jQuery 选择器。
另外,我使用术语“方法”而不是“函数”,因为它们就是这样 在 w3c 定义。
归根结底,只要您清楚地传达您的信息和/或意图,这可能就不重要了。
I would call them element selector methods or element retrieval methods. You need to be careful using the term "selector" though as that is a very common term used in conjunction with jQuery. You won't want to mislead anyone into thinking that you are talking about jQuery selectors.
Also, I used the term method instead of function because that is how they are defined at w3c.
At the end of the day, it isn't likely going to matter, as long as you clearly communicate your message and/or intent.