// 特效demo
http://inorganik.github.io/countUp.js/
// js代码实现
var memberNumObj = element.find('.member-num-text')[0]; var memberNum = $scope.plan.memberNum; var numAnim = new countUp(memberNumObj, (memberNum > 100 ? memberNum - 100 : 1), memberNum, 0, 1.5); numAnim.start();