例:
HTML:
<div id='Get' data-price=' 后台传入的数值'>
<span id='ppsice'>¥<i class='big-price'></i>.<i small-price></i></span>
</div>
js:
var price=$('#Get').attr("data-price");
//console.log(price)
var arry =price.split(".");
$('#ppsice').find(".big-price").text(arry[0]);
$('#ppsice').find(".small-price").text(arry[1]);
scc:设置所需求的样式。