【发布时间】:2014-01-29 13:49:00
【问题描述】:
我正在使用ExtJS 2.3.0
我有一个链接如下-
{ id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", width: 60 }
单击它会在同一窗口中打开页面。我想在新窗口中打开它。我知道我可以使用window.open,但我怎样才能在 navigateURL 中编写它
请帮忙
【问题讨论】:
我正在使用ExtJS 2.3.0
我有一个链接如下-
{ id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", width: 60 }
单击它会在同一窗口中打开页面。我想在新窗口中打开它。我知道我可以使用window.open,但我怎样才能在 navigateURL 中编写它
请帮忙
【问题讨论】:
{ id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", target: "_blank", width: 60 }
【讨论】:
我通过添加 "target": "_blank" 让它工作了
{ id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", "target": "_blank", width: 60 }
【讨论】: