我尝试$(‘[title = *]’)作为选择器,但这不工作。
$('[title]')
参见 – Has Attribute Selector:
Selects elements that have the specified attribute,with any value.