- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 33字
- 2021-07-02 19:57:22
Hiding the More button
Once theAboutsection has been expanded, we want to hide theMorebutton as it's no longer needed. We can use thev-ifdirective to achieve this in conjunction with thecontractedproperty.
index.html:
<button v-if="contracted" class="more" v-on:click="contracted = false">
+ More
</button>
推薦閱讀
- Java多線程編程實戰指南:設計模式篇(第2版)
- Java EE 6 企業級應用開發教程
- 工程軟件開發技術基礎
- PHP基礎案例教程
- 動手玩轉Scratch3.0編程:人工智能科創教育指南
- ASP.NET Core Essentials
- Python網絡爬蟲從入門到實踐(第2版)
- 21天學通C++(第6版)
- 數據結構(C語言)
- Oracle Database 12c Security Cookbook
- Test-Driven Development with Django
- Android開發三劍客:UML、模式與測試
- 平面設計經典案例教程:CorelDRAW X6
- Visual Basic語言程序設計基礎(第3版)
- Python數據科學實踐指南