var unReadCount = function(num){ if(num==0){ return 0; } if(num>99){ return "99+"; } return num; } module.exports.unReadCount = unReadCount; {{item.nickname}} {{item.updated_at}} {{item.last_chat_content}} {{tool.unReadCount(item.un_read_num)}}