Listing 3. jQuery attr function.
清单3 .jQueryattr函数。
The attr method retrieves the value of the attribute named id.
attr方法检索名为id的属性的值。
qp()->attr('name', 'value') sets the value of the name attribute to value.
qp()->attr('name', 'value')将 name属性的值设为 value。
There are two separate ways of getting these attributes, and you can't use the attr function to do so.
获得这些信息的方式有两种,但不能为此使用attr函数。
In the Mozilla and Firefox browsers, extracting the value of the attr attribute is a straightforward exercise, as shown in Listing 2.
在Mozilla浏览器和Firefox浏览器中,提取attr属性值非常简单,如清单2所示。
You saw that the generic attr function can be used generically on every element, and that the Form elements have special functions to get their values.
您看到了通用的attr函数可用于每个元素,并且Form元素有获得其值的特殊函数。
You can also retrieve the value of the attribute type property of an attribute information item -- this is the type of an attribute -- through the schemaTypeInfo attribute of the Attr interface.
通过Attr接口的schemaTypeInfo属性,您还可以获取一个属性信息项的属性类型特性的值 ——即一个属性的类型。
In a udev rule, I could use ATTR{size}=="234441648" to identify this disk.
在一个udev规则里面,我可以使用ATTR{size}=="234441648"来识别这个磁盘.
Many drivers export information like this into sysfs, and udev allows us to incorporate sysfs-matching into our rules, using the ATTR key with a slightly different syntax.
许多驱动程序会导出这些信息到sysfs,udev允许我们使用ATTR键通过稍捎不同的语法来合并sysfs匹配到自己的规则中。
Many drivers export information like this into sysfs, and udev allows us to incorporate sysfs-matching into our rules, using the ATTR key with a slightly different syntax.
许多驱动程序会导出这些信息到sysfs,udev允许我们使用ATTR键通过稍捎不同的语法来合并sysfs匹配到自己的规则中。
应用推荐