10
在拉斐爾的文檔,我們初始化拉斐爾有:與jQuery選擇初始化拉斐爾對象
var paper = Raphael(document.getElementById("notepad"), 320, 200);
我要選擇我的課與jQuery和把它轉化爲拉斐爾,所以我的想法是:
var paper = Raphael($(".myClass"), 320, 200);
但是我在Raphael.js中獲得TypeError: b is undefined
。有誰知道如何做到這一點?