如何将链接嵌入到html按钮标签中?
这就是我试过的-
<button {{link-to "posts.show" post}}>
Show
</button>
获取错误:没有名为
embercli@model:post::ember506:6
发布于 2016-03-28 11:27:32
您可以将链接的tagName设置为按钮。
{{link-to 'posts.show' post tagName='button'}}
Show
{{/link-to}}
https://stackoverflow.com/questions/36261287
复制相似问题