打分 2013-07-15 1 min read # javascript var get_rating_string = function(rating) { return "★★★★★☆☆☆☆☆".substring(5 - rating, 10 - rating); };