如何在使用 target="_blank" 制作的 openlayers 中制作链接
How to make links in openlayers maked with target="_blank"
何,
如何将 target="blank" 添加到 openlayers 3.10.x 组件元素中的所有链接?
-- 吕迪格
我使用这个 jquery 代码:
$("#mapDiv").bind("DOMSubtreeModified", function() {
$("a").each(function() {
$(this).attr('target', '_blank');
})
});
这看起来像预期的那样工作。
-- 托洛托斯
何, 如何将 target="blank" 添加到 openlayers 3.10.x 组件元素中的所有链接? -- 吕迪格
我使用这个 jquery 代码:
$("#mapDiv").bind("DOMSubtreeModified", function() {
$("a").each(function() {
$(this).attr('target', '_blank');
})
});
这看起来像预期的那样工作。
-- 托洛托斯