這對我有用! (使用最接近您的格式) rating = (Math.round(rating * 2) / 2).toFixed(1). 所以這個答案幫助了我。這裡添加了一些魔術,可以處理四捨五入到.5或整數。
確定! 回上一頁