$(function(){ var data = [ ]; if(data.length>0){ notice({ data: data, initIndex: 0, }); } })