- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 80字
- 2021-07-02 19:57:19
Directives
Vue's directives are special HTML attributes with thev-prefix, for example,v-if, which provide a simple way to add functionality to our templates. Some examples of directives you can add to an element are:
- v-if: Conditionally render the element
- v-for: Render the element multiple times based on an array or object
- v-bind: Dynamically bind an attribute of the element to a JavaScript expression
- v-on: Attach an event listener to the element
There are more that we will explore throughout the book.
推薦閱讀
- Learning C# by Developing Games with Unity 2020
- Python量化投資指南:基礎(chǔ)、數(shù)據(jù)與實(shí)戰(zhàn)
- 企業(yè)級Java EE架構(gòu)設(shè)計(jì)精深實(shí)踐
- MATLAB圖像處理超級學(xué)習(xí)手冊
- 算法訓(xùn)練營:入門篇(全彩版)
- 羅克韋爾ControlLogix系統(tǒng)應(yīng)用技術(shù)
- Python編程與幾何圖形
- Learning Selenium Testing Tools(Third Edition)
- Java編程技術(shù)與項(xiàng)目實(shí)戰(zhàn)(第2版)
- 飛槳PaddlePaddle深度學(xué)習(xí)實(shí)戰(zhàn)
- Python編程從0到1(視頻教學(xué)版)
- HTML+CSS+JavaScript網(wǎng)頁設(shè)計(jì)從入門到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開發(fā)視頻大講堂)
- C語言程序設(shè)計(jì)實(shí)踐
- Redmine Cookbook
- 從零開始學(xué)Python大數(shù)據(jù)與量化交易