离子按钮有两个问题。 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>'关闭' –