个人原创,欢迎转载,转载请注明出处http://blog.csdn.net/bud_icelf QQ:909648986
<!DOCTYPE html>
<html>
<head>
<meta charset="gbk">
<script type="text/javascript" src="easeljs-0.6.0.min.js"></script>
</head>
<body>
<canvas id="myCanvas" width="200" height="200">
你的浏览器不支持canvas标签
</canvas>
<script>
var myCanvas=document.getElementById("myCanvas");
var stage=new createjs.Stage(myCanvas);
...
stage.update();
</script>
</body>
</html>
导入EaselJS Javascript脚本文件,文件可在 http://createjs.com/ 下载
var stage=new createjs.Stage(myCanvas);
创建舞台,参数一为canvas对象.
stage.update();
更新舞台.