vue小案例 監聽用戶輸入和點擊

功能1:監聽用戶輸入和點擊,並實時顯示, 功能2:點擊發布,編輯頁面隱藏,顯示發佈成功。 功能1 html代碼: 使用:v-model監聽,!submmited視圖默認顯示,注意監聽option v-for="(i,index) in authors"   v-bind:value="authors[index], 監聽當下用戶點擊的那個; <div id="add-blog"> <h
相關文章
相關標籤/搜索