如何使用MVC将target =“_ blank”添加到location.href?

时间:2018-02-08 10:07:32

标签: javascript jquery html css asp.net-mvc

以下代码我需要添加target= "_blank"

location.href = "@Url.Action("GenericDetailsNew", "Generic"),?GenericID=" + ID;

如何在新标签中启动链接?

完整代码:

'click .detail': function (e, value, row, index) {
                    var ID = row.id
                    location.href = "@Url.Action("GenericDetailsNew", "Generic"),?GenericID=" + ID;
                },

0 个答案:

没有答案