<input type="button" class="new"/> $("input[name=new]").hasClass("new");
jQuery动态改变背景图片
$('.pop-box').css("background-image","url(\"<%=request.getContextPath() %>/img/wishes/"+data+".jpg\")");