Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为 SET 对象提供一个 ID。知道怎么做
据我所知,只有一种方法....扩展 Raphael.st
Raphael.st.setID = function(id){ this.id = id; } var yourset = paper.set(); yourset.setID(id); //give the id you want then try -> yourset.id;
我希望这个对你有用 ....