jQuery中,能够实现当鼠标单击class值为comment下的里元素时设置属性“light=on”的代码是
A.
$('.comment>li').mouseover(function() {$(this).attr('light', 'on')});
B.
$('.comment>li').click(function() {$(this).attr('light', 'on')});
C.
$('.comment>li').click(function() {$(this).css('light', 'on')});
D.
$('.comment>li').click(function() {$(this).attribute('light', 'on')});