我有以下代码。我想引用触发器元素并在 onShow() 中获取标记值。我怎样才能做到这一点?谢谢
<a class="tips" tag="12">TEST 01</a>
<a class="tips" tag="123">TEST 02</a>
<a class="tips" tag="1234">TEST 03</a>
<a class="tips" tag="12345">TEST 04</a>
$(document).ready(function () {
$('a.tips').cluetip({
splitTitle: "|",
width: '500',
sticky: true,
closePosition: 'title',
dropShadow: true,
onShow: function (ct, ci) {
}
});
}