我想使用jquery里程表在母版页上显示信息。 http://www.jqueryscript.net/animation/Smooth-Animated-Numbers-with-Javascript-CSS3-odometer.html使用Odometer将变量传递给jquery
为了做到这一点,我必须从SQL Server使用C#中检索该值。然后我必须将它传递给html()中的jscript里程表,如下所示。如果我获得了价值 - 如何将它发送给javascript?
<script>
setTimeout(function(){
$('.odometer').html('123222');
}, 1000);
</script>
ajax调用怎么样? – 2014-09-22 08:14:27