mzx16822 6 years ago
parent
commit
85a89013d0
1 changed files with 12 additions and 0 deletions
  1. 12 0
      public/h5/datigame/js/common.js

+ 12 - 0
public/h5/datigame/js/common.js

@@ -167,6 +167,18 @@ common={
  		})
  		
  		
+ 	},increment:function(bdclass,num){
+ 		 
+		$("."+bdclass).prop('Counter',num-$(this).text()).animate({
+			Counter: $(this).text()
+		},{
+				duration: 3500,
+				easing: 'swing',
+				step: function (now){  
+					$(this).text(Math.ceil(now));
+				}
+			});
+	 
  	},daoshu:function(argument) {
  			var _this=this;
 	    clearInterval(this.data.ts);