var c = document.createElement('canvas'); c.width = 400; c.height = 100; c.id = 'canvas-test1'; parent.appendChild(c); //ÔÚÐèÒªµÄλÖüÓÈëcanvasÔªËØ var loader = new lightLoader(c,c.width,c.height); setupRAF(); //²»Ö§³ÖrequestAnimationFrameä¯ÀÀÆ÷µÄÌæ´ú·½°¸ loader.init();
----- ¶ÁÔ´Âë ----- £¨Ò»£© ¹¹Ô캯ÊýµÄÐβÎ
¡¡