var data=["生活服务","休闲生活","消费者协会","生活常识","网上求助","日常品牌","地方生活服务"];
$(function(){$(".topbox").empty();for(var i=0; i<data.length; i++){var index=data[i];$(".topbox").append("<li>"+index.substr(0,4)+"</li>");}});