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.
这个函数简单地将元素标识符转换为一个指针,然后调用构造函数,将其他参数不加修改地传递给构造函数。
To add elements to a set, we can either call add() for each element, or create a Collection and pass that to the constructor.
要向集中添加元素,我们可以为每个元素调用add() ,或创建一个Collection并将它传递到构造函数。
The tooltip is an HTML division element containing whatever text, images, and markup are passed to the constructor in its tooltipContent argument.
工具提示是一个HTMLdiv元素,其中可以包含任何文本、图像和标记,它在 tooltipContent 参数中传递给构造方法。
Because an XML document must always have a single root element, document takes the element in its constructor.
因为一个XML文档必须一直有一个唯一的根元素,所以Document将Element放在它的构造器中。
When we allocate an array of objects of a class type, then that type's default constructor ( Section 2.3.4, p. 50) is used to initialize each element.
动态分配数组时,如果数组元素具有类类型,将使用该类的默认构造函数( 第2.3.4节)实现初始化;
In the first case, those objects are strings. After allocating memory to hold the objects, the default string constructor is run on each element of the array in turn.
其中第一个数组是string类型,分配了保存对象的内存空间后,将调用string类型的默认构造函数依次初始化数组中的每个元素。
If the array's element type does not have a constructor, the elements of the array will be initialized with the corresponding zero representation for that type.
如果阵列的元素型别没有建构函式,则阵列的元素将会以该型别的对应零表示初始化。
That type may or may not support attribute syntax for its values, or may or may not support object element syntax (which requires a default constructor on that type).
该型别针对其值不一定支援属性语法,也不一定支援物件项目语法(需要该型别上的预设建构函式)。
That type may or may not support attribute syntax for its values, or may or may not support object element syntax (which requires a default constructor on that type).
该型别针对其值不一定支援属性语法,也不一定支援物件项目语法(需要该型别上的预设建构函式)。
应用推荐