使用jqMobi开发app基础:Badge的使用

  显示效果:

   

 红色的部分就是Badge,能够用来显示数量或者是其它的信息。

  使用事实上非常easy,  $.ui.updateBadge("#" + id, res.Msg, "tr");

  第一个參数是须要显示的标签编号,第二个參数是须要显示的文字,第三个參数是须要显示的位置。

第三个參数可输入的字符及含义

bl - bottom left
tl - top left
br - bottom right
tr - top right (default)



原文地址:https://www.cnblogs.com/zfyouxi/p/3904081.html