0

Edit, I am calling function edit and pass the id and get the details then render the edit page in same tab.Now, my problem was I unable to open in new tap when I try to open in new tab using clrl+click is not open. I want to open edit page current tab as well as new tap also..

4

1 回答 1

0

如果您希望 ctrl+click 在新选项卡中打开链接,则该链接需要设置一个 href。如果您使用{{linkTo}}车把助手而不是{{action}}. 如果由于某种原因您需要使用 action 来代替,那么您还需要手动 bindAttr 以便设置 href 属性。查看 linkTo 标记的来源,了解如何做到这一点:https ://github.com/emberjs/ember.js/blob/v1.0.0-rc.7/packages/ember-routing/lib/助手/link_to.js#L323

于 2013-08-20T08:24:08.467 回答