怎么做大屏数字可以实时变化的销量数字显示,具体见附件图片.doc我看有人用下面的JS 实现,但是我改了对应的报表模块却实现不了。setTimeout(function(){var price1 = $('#REPORT0_N').find("td").text()console.log(price1)$("#REPORT2_N").find("").each(function(index){ var val=$(this).text() if( index==0 || price1.charAt(index-2)=='a' || index == 1 ){ return true } var id = $(this).attr('id') var options = { useEasing: true, useGrouping: true, separator: ',', decimal: '.', } var demo = new CountUp(id, val, price1.charAt(index-2), 0, 5, options) if (!demo.error ) { console.log(1234) //console.log(val.charAt(0)) demo.start(); } }) //console.log(price1)setInterval(function() { var price = $('#REPORT0_N').find("td").text() //console.log(price) //console.log(price1) if ( price != price1){ price1=price $("#REPORT2_N").find("").each(function(index){ var val=$(this).text() //console.log(index) //console.log(price.charAt(index-1)) //console.log(price.charAt(index-1)==' ') //console.log(price.charAt(index-1)==' ') if( index==0 || price.charAt(index-2)=='a' || index == 1){ return true } var id = $(this).attr('id') var options = { useEasing: true, useGrouping: true, separator: ',', decimal: '.', } var demo = new CountUp(id, val, price.charAt(index-2), 0, 5, options) if (!demo.error ) { //console.log(val.charAt(0)) demo.start(); } }) } }, 62000); },2000);