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>");}});