带有方括号和脱字号的jQuery代码是什么意思? [英] What does this jQuery code with square brackets and a caret mean?
本文介绍了带有方括号和脱字号的jQuery代码是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这个jQuery代码是什么意思?
What does this jQuery code mean?
$('tr[id^="message"]')
推荐答案
这意味着-选择id
属性以message
字符串开头的所有tr
元素
It means - select all tr
elements which id
attribute starts with message
string
http://api.jquery.com/attribute-starts-with-selector/
这篇关于带有方括号和脱字号的jQuery代码是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文