0
給定一個kineticjs對象的任意數組有沒有一種方法來獲取對象類型?如何獲取對象類型
var ary = new Array();
ary[0] = "Circle Obj";
ary[1] = "rect Obj";
ary[2] = "arc Obj";
ary[0] = "Circle Obj";
請評論
給定一個kineticjs對象的任意數組有沒有一種方法來獲取對象類型?如何獲取對象類型
var ary = new Array();
ary[0] = "Circle Obj";
ary[1] = "rect Obj";
ary[2] = "arc Obj";
ary[0] = "Circle Obj";
請評論
是,使用myObject.className
ary[0]=new Kinetic.Circle({...});
console.log(ary[0].className); // returns "Circle"