【发布时间】:2017-08-15 22:16:59
【问题描述】:
我有这个选择器
self = $('.trim .person:nth-child('+index+')');
self.append('<img src="'+element.profilePic+'" class="profilePic" />');
然后我想用这个在
中选择一个类 $(self + '.spacer').css('opacity', 0.5);
我也试过
self + $('.spacer').css('opacity', 0.5);
【问题讨论】:
标签: jquery variables jquery-selectors