var totalPrice = (product.unitPrice * product.nums).toFixed(2); 转载于:https://www.cnblogs.com/yqlwl66/p/4155606.html