0

如何使用 jquery 定位 GB?

在这里查看 html http://jsbin.com/opedih/1/edit

我需要类似下面的东西

 $("g[data-code='GB']").mouseover(function(){
     alert('test');
});
4

1 回答 1

1
    $('g > path[data-code="GB"]').mouseover(function(){
        alert('test');
    });
于 2012-10-04T20:20:51.300 回答