Every line of 'count in angularjs' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
83 function count() { 84 tpl().count++; 85 eval(); 86 }
45 function count() { 46 /*此处写代码*/ 47 switch (value) { 48 case '+': 49 element.result.value = operate.add(element.textNum1.value, element.textNum2.value); 50 break; 51 case '-': 52 element.result.value = operate.sub(element.textNum1.value, element.textNum2.value); 53 break; 54 case '*': 55 element.result.value = operate.mul(element.textNum1.value, element.textNum2.value); 56 break; 57 case '/': 58 element.result.value = operate.divide(element.textNum1.value, element.textNum2.value); 59 break; 60 } 61 }
19 function count(template) { 20 let count = 0 21 forEach(template, () => count += 1) 22 return count 23 }
28 finalCount() { 29 return element(by.css('.databases > div:nth-child(2) > div:nth-child(2) > div.info-body > div:nth-child(1) > div.column-body')); 30 }
16 export function count(countFrom, countTo, countDecimals, countDuration, callback) { 17 var startVal = Number(countFrom); 18 var endVal = Number(countTo); 19 var countDown = startVal > endVal; 20 var decimals = Math.max(0, countDecimals); 21 var dec = Math.pow(10, decimals); 22 var duration = Number(countDuration) * 1000; 23 var startTime; 24 function runCount(timestamp) { 25 var frameVal; 26 var progress = timestamp - startTime; 27 if (countDown) { 28 frameVal = startVal - easeOutExpo(progress, 0, startVal - endVal, duration); 29 } 30 else { 31 frameVal = easeOutExpo(progress, startVal, endVal - startVal, duration); 32 } 33 if (countDown) { 34 frameVal = frameVal < endVal ? endVal : frameVal; 35 } 36 else { 37 frameVal = frameVal > endVal ? endVal : frameVal; 38 } 39 frameVal = Math.round(frameVal * dec) / dec; 40 var tick = progress < duration; 41 callback({ 42 value: frameVal, 43 progress: progress, 44 timestamp: timestamp, 45 finished: !tick 46 }); 47 if (tick) { 48 return requestAnimationFrame(function (val) { return runCount(val); }); 49 } 50 } 51 return requestAnimationFrame(function (timestamp) { 52 startTime = timestamp; 53 return runCount(timestamp); 54 }); 55 }
37 get count(){ 38 console.log(this.data) 39 console.log("****************************************") 40 console.log(this.source) 41 return this.data[this.source][0][this.field] 42 }
31 export function sampledCount(_) { 32 if (!arguments.length) { 33 return _sampledCount 34 } 35 _sampledCount = _ 36 }
407 function updateCount (count) { 408 this.page.count = count; 409 this.page.last = Math.ceil(count / this.page.size); 410 411 return this.page.last; 412 }
46 set countFrom(val) { 47 this._countFrom = parseFloat(val); 48 this.start(); 49 }
10 module.exports = input(function count() { 11 count.counter = count.counter || 0 12 console.log("Called function %d times.", (count.counter++) + 1) 13 }, randomInt(3, 10)).wrap(function(input, repeat) {