string = "125"
string.charAt(2) ---------> "5"
string = "Hello"
string.charAt(1) ---------------> "e"
获取积分,把对应的积分图片显示出来
var score_img = "";
var score = "{{score}}";
for(i=0;i<score.length;i++){
score_img += "<img src='/static/images/activity/act_national/score_num/" + score.charAt(i) + ".png'/>";
}
document.getElementById("score").innerHTML = score_img