获取span的value值
$('.span-item').on('click',function(){
var _that = $(this);
_that.addClass('span-item-active').siblings('span').removeClass('span-item-active');
alert($(this).attr("value"));
})
});
<div class="fl">
<span class="span-item span-item-active" value="30">30日</span>
<span class="span-item" value="60">60日</span>
<span class="span-item" value="90">90日</span>
</div>