我以编程方式插入到编辑器中的这个标记有问题。我不知道如何添加 target="_blank" 属性。即使我尝试了 '" "' 或 "' "' 以及各种组合,我也无法让它工作。我也不知道我称之为什么任务,所以我不能真正用谷歌搜索它。任何帮助将不胜感激,使这项工作
var html = "<a href='" + host + "/draught/connect/Download" + draughtDownloadType + "?PropId=" + selectedPropertyId + autoUpdateQuery + "' target=_blank>" + linkText + "</a>";
您需要通过在"
角色\
前面放置一个来逃避角色。
target=\"_blank\"
为你带来:
var html = "<a href='" + host + "/draught/connect/Download" + draughtDownloadType + "?PropId=" + selectedPropertyId + autoUpdateQuery + "' target=\"_blank\">" + linkText + "</a>";
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句