我有一些李里面的ul.所有li都有一个id"#category"但不同的类(如".tools",".mil",".apple").
使用jQuery.我做 :
$("li#category").click(function(){ some_other_thing ( .... )});
Run Code Online (Sandbox Code Playgroud)
现在我必须在some_other_thing()函数中放置一个li的类"name" - (确实是一个字符串)而不是....
怎么做?
| 归档时间: |
|
| 查看次数: |
36606 次 |
| 最近记录: |