这个jQuery代码是什么意思?
$('tr[id^="message"]')
Run Code Online (Sandbox Code Playgroud)
zer*_*kms 16
它意味着 - 选择属性以字符串开头的所有tr元素idmessage
http://api.jquery.com/attribute-starts-with-selector/
它表示具有以"message"开头的id的表行:
$('tr // a table row
[id //having an id
^="message"]') // starting with 'message'
Run Code Online (Sandbox Code Playgroud)
http://api.jquery.com/category/selectors/attribute-selectors/
| 归档时间: |
|
| 查看次数: |
8682 次 |
| 最近记录: |