后台输出的数据进行字符判断,小数点后边是0不显示,不是0显示
var memberprice = item.JSON_memberprice;
var array = memberprice.split('.');
var array1 = parseInt(array[0]);
var array2 = parseInt(array[1]);
if (array2 == 0) {
memberprice = array1;
}
' + memberprice + '