https://blog.youkuaiyun.com/superit401/article/details/51771174
<div class='box'>
<span id="contactStar" data-id='f1' name='fl' style="color:red">*</span>
<span id="contactPhoneStar" data-id='f1' name='fl' style="color:red">*</span>
<span id="phoneStar" data-id='f1' name='fl' style="color:red">*</span>
<button onclick="getCheckedValues();">点击</button>
</div>
// * 选择器:[attribute*=value],匹配给定的属性是以包含某些值的元素。举个例子说明一下:
function getCheckedValues () {
console.log($("span[id*='Star']"))
}