<script>
$(function(){
var yes = 200000;
var all = 3000000;
var allow = 250;
var val = yes*allow/all;
var percent = yes/all;
var x = percent.toString().substring(percent.toString().indexOf('.')+1,percent.toString().length).length;
if(x<2){
var value = changeTwoDecimal_f(percent);
}else{
var value = changeTwoDecimal(percent);
}
var percent = value*100/100+'%';//转换百分比
per = document.getElementById('per');
//per.innerHTML = percent+'%';
per.innerHTML = 0+'%';
si = setInterval(function(){
//document.getElementById('per').innerHTML = parseFloat(per.innerHTML)+1+'%';
},10);
$('#show').css({width:allow+'px'});
$('#test').animate({width:val+'px'},1000);
});