0
我確實需要在所有Raphael路徑上簽名。我使用了這個答案how to access id attributes of any element in raphael中發佈的解決方案,它只能在Chrome和Firefox中找到。它在Internet Explorer中完全不起作用。它甚至可以阻止加載過程。有沒有人有一個想法如何解決這個問題? 我知道IE總是很艱難,但我必須讓它在這個瀏覽器上工作。在Raphael.JS中爲Internet Explorer設置一個路徑ID
for(var i = 0; i < statePathArr.length; i++) {
var path = mapPaper.path(statePathArr[i].coordinates).attr({
'fill' : '#EDECE7',
'stroke': '#666666'
});
path.node.id(statePathArr[i].name);