[jQuery] 事件綁定在有著使用者自訂屬性的element上

在有著data-keyword_id屬性的<a>標籤上綁定事件
$("a[data-keyword_id]").bind("click",function(){
    // do things
});

http://stackoverflow.com/questions/8172322/how-to-bind-to-a-elements-data-attribute

留言

這個網誌中的熱門文章

[翻譯] 介紹現代網路負載平衡與代理伺服器

Grafana K6

Linux 事件驅動筆記