... 上述 if/else 條件判斷是否勾選 id 屬性值 discount 的核取方塊,如果是,就打 9 折,而且總價使用 toFixed()方法四捨五入,只取出參數的小數點下 2 位。
確定! 回上一頁