離子按鈕有兩個問題。 1.離子文檔僅顯示離子按鈕元素的用法,除了可以從示例推斷出的內容外,沒有真正的解釋。 2.什麼引起我的關注,這是我的密切標籤出現在錯誤的地方。當我在文檔上看到這個時,我想知道這是否是一個錯誤,但我也在堆棧中的代碼示例中看到了這一點。像這樣的:離子按鈕的開始和結束語法沒有意義
<ion-header>
<ion-navbar primary>
<ion-buttons start> **// here it starts.**
<button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
</ion-buttons> **//Why does ion-buttons close here?**
<ion-title>
My Page
</ion-title>
<ion-buttons end> **// END here?**
<button ion-button icon-only>
<ion-icon name="search"></ion-icon>
</button>
</ion-buttons> **// then close AGAIN here when there is no companion open tag?**
</ion-navbar>
</ion-header>
你的問題是什麼? – 2017-04-05 19:41:22
如果你看看代碼片段,你會看到我在哪裏注意到我的問題 – Spilot
「開始」和「結束」並不像你想的那樣。把它看作是左標記和右標記。每個''''像往常一樣用' ion-buttons>'關閉' –