消息未读数累加
//加消息角標(biāo)數(shù)
function addBadge(thisOrderid){var notreadnum = $('#unread_'+thisOrderid).html()//未讀數(shù)if(notreadnum == ''){notreadnum = 0;$('#unread_'+thisOrderid).show();}notreadnum++;$('#unread_'+thisOrderid).html(notreadnum);
}//減消息角標(biāo)數(shù)
function subtractBadge(thisOrderid){var notreadnum = $('#unread_'+thisOrderid).html()//未讀數(shù)if(notreadnum == 1){notreadnum = '';$('#unread_'+thisOrderid).html('').hide();}else{notreadnum--;$('#unread_'+thisOrderid).html(notreadnum);}}
?
轉(zhuǎn)載于:https://www.cnblogs.com/rockyan/p/7920563.html
總結(jié)
- 上一篇: CentOS 6上配置安装MariaDB
- 下一篇: html5--3.2 input元素(1