# 🏅 6/10 (四) 每日任務 Day 34 ###### tags: `Vue 直播班 - 2021 夏季班` 題目 (請將答案貼上 CodePen) --- 操作 [這個模板](https://codepen.io/rider159159/pen/yLMbpOK),執行以下要求 (只能操作 JS 的部分): > 練習建置 computed > - 在 computed 中新增方法,讓畫面顯示「今年要繳的稅金為 xx 元」為實際輸入 input 數值的 20%,並且需為整數,實際狀況如圖: >  > - 提示一: 會使用到 this.cash >- 提示二: 整數化方法為 Number.parseInt() > 參考:https://courses.hexschool.com/courses/vue-2021/lectures/31862821 回報流程 --- 請同學依照下圖教學觀看解答、回報答案:  回報格式如下圖,請在「回報區」使用註解回報答案 (為了統計人數,請同學依序加上「報數」)  <!-- 解答 computed: { taxes() { return Number.parseInt(this.cash * 0.2); } } --> 回報區 --- <!--1:Alpha Codepen:https://codepen.io/alphatero/pen/oNZPxrw --> <!-- 2: Alysa Chan codepen: https://codepen.io/alysachan/pen/LYWJNKy?editors=1111 --> <!-- 3: MM codepen: https://codepen.io/MINN3/pen/KKWxzjj --> <!-- 4: 小魚 codepen: https://codepen.io/jarvis1993/pen/bGqxedZ --> <!-- 5: Lina Chen codepen:https://codepen.io/LinaChen/pen/QWpVENe --> <!-- 6: 陳sam codepen:https://codepen.io/lily-oa/pen/xxqJBxq?editors=1010 --> <!-- 7: Vic codepen:https://codepen.io/hsuan333/pen/MWpqeQj --> <!-- 8: Wendy Li codepen: https://codepen.io/rockayumitw/pen/mdWGExa?editors=1010 --> <!-- 9: Erica https://codepen.io/ericadu/pen/jOBvrJr --> <!-- 10: peter.chen1024 codepen: https://codepen.io/JIAN-RONG/pen/XWMPjYx?editors=1010 --> <!-- 11: Echo Hui codepen: https://codepen.io/echohuiecho/pen/OJpobRx --> <!-- 12: RitaHuang https://codepen.io/Rita-Rossweisse/pen/MWpqbXd?editors=1010 --> <!-- 13: Yi Chieh Codepen: https://codepen.io/Yi-Chieh/pen/vYxzyQe --> <!-- 14: Ethan codepen: https://codepen.io/blazer030/pen/WNpgRMN --> <!-- 14: Joe Kuo codepen: https://codepen.io/alertislow/pen/YzZOZxm?editors=0010 --> <!-- 15: Jack https://codepen.io/yxzzktmb/pen/dyvqvzE?editors=1010 --> <!-- 16: YuSung https://codepen.io/kevin-hsu-the-encoder/pen/GRWXWaj?editors=1010 --> <!-- 17: Harold codepen: https://codepen.io/YuWin0805/pen/bGqxBjx --> <!-- 18: Sec codepen: https://codepen.io/Sentiments/pen/bGqxWRv --> <!-- 19: 阿倫 codepen: https://codepen.io/jason5125122/pen/poeOwXN --> <!-- 20: twoz codepen: https://codepen.io/twoz/pen/mdWGBWW?editors=1010 --> <!-- 21: leolee codepen: https://codepen.io/nekorice/pen/ZEeMXvN --> <!-- 22: Amber codepen: https://codepen.io/amberTing/pen/mdWGBZX?editors=1010 --> <!-- 23: Jay codepen: https://codepen.io/jayredk/pen/wvJEpGK --> <!-- 24: tim Chou codepen: https://codepen.io/tim-chou/pen/eYvLyqP --> <!-- 25: Fred Chang https://codepen.io/fred8196/pen/XWMPeBW --> <!-- 26: yijun codepen: https://codepen.io/sandy3068/pen/gOmdeQy --> <!-- 27: 圈圈 codepen: https://codepen.io/wei-the-lessful/pen/ZEeMdRO --> <!-- 28: Larry codepen: https://codepen.io/manpower0708/pen/RwpYXMb?editors=1111 <!-- 29: valerie https://codepen.io/vicky-chang/pen/jOBepeN?editors=1011 --> <!-- 30: Jessie Cheng https://codepen.io/JessieMosbi/pen/bGqQNYd --> <!-- 31: Oober https://codepen.io/xtsjrjdv/pen/abJQzaK?editors=1111 --> <!-- 32: jimmyFang https://codepen.io/pohxiqqo/pen/bGqQwgb --> <!-- 33: Tori https://codepen.io/hayen/pen/VwpdYVP?editors=1011 --> <!-- 34: YOYO https://codepen.io/lumedkle/pen/RwpEzOL --> <!-- 35: Stacey Huang https://codepen.io/staceyhuang/pen/LYWagdr --> <!-- 36: Chiang https://codepen.io/ChiangJ/pen/xxdbLNW?editors=1010 -->
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up