';
contents += '' + title + '';
contents += ''
if( i == num ) return false; //記事数で終了
});
$(id).append( contents );
},
error: function() {
console.log('error');
}
});
};
function strLengthCheck( txt , number ){
if ( txt == null ){
return txt = "";
}
else if ( txt.length > number ) {
return txt.substr( 0, number ) + "...";
}
else{
return txt;
}
}