Uncaught TypeError: undefined is not a function
问题 Button.js: (function () { function Button(label) { console.log(label); } }()); demo.html: <html> <head> <script src="../../lib/easeljs-0.7.1.min.js"></script> <script src="Button.js"></script> <script> window.onload = function() { var canvas, stage, button; canvas = document.getElementById("canvas"); stage = new createjs.Stage(canvas); button = new createjs.Button("Anything"); stage.addChild(button); stage.update(); } </script> </head> <body> <canvas id="canvas" width=200 height=200>Canvas is