1
//获取发文时间 function selectWriteTime(){ $("#writing_time_index").on("click","li",function(event){ var target=$(event.target) var targetText=target.html(); $("#writing_time_val").html(targetText) var valuTime=targetText // alert("targetText:"+targetText) if(targetText=='全部'){ valuTime='' } $("#writing_time_val").val(valuTime) // alert("now val"+$('#writing_time_val').val()) target.addClass("red").siblings().removeClass("red") beginSearch() }) }
2