Your widget will need to know which HTML element to hook itself into and what content to display in its tooltip, so you'll specify these as arguments to the constructor and save them in the object.
这个部件需要知道它自己要连接到哪个 HTML 元素,以及要在工具提示中显示什么内容,所以要作为构造方法的参数指定这些,并将它们保存在对象中。
You can construct lists with multiple elements using the constructor, which builds a list from an element and another list.
可以使用构造函数构造包含多个元素的列表,它用一个元素和另一个列表构造列表。
The function simply converts the element identifier into a pointer and then calls the constructor, passing the remaining arguments unchanged.
这个函数简单地将元素标识符转换为一个指针,然后调用构造函数,将其他参数不加修改地传递给构造函数。
应用推荐