【发布时间】:2017-05-08 14:23:43
【问题描述】:
我以编程方式插入到编辑器中的这个标记有问题。我不知道如何添加 target="_blank" 属性。即使我尝试了 '" "' 或 "' "' 以及各种组合,我也无法让它工作。我也不知道这个任务我叫什么,所以我不能真正用谷歌搜索它。 任何帮助将不胜感激,以使这项工作
var html = "<a href='" + host + "/draught/connect/Download" + draughtDownloadType + "?PropId=" + selectedPropertyId + autoUpdateQuery + "' target=_blank>" + linkText + "</a>";
【问题讨论】:
标签: javascript string url concatenation