我試圖用JS和EaselJS顯示圖像。Uncaught TypeError:Object#<HTMLImageElement> has no method'isVisible'
,我發現了錯誤Uncaught TypeError: Object #<HTMLImageElement> has no method 'isVisible'
這裏是我的代碼片段...
function init() {
canvas = document.getElementById("testCanvas");
start();
}
function start() {
//Create new stage and point it at Canvas
stage = new createjs.Stage("demoCanvas");
myImg = new Image();
myImg.src = "./Images/SnakeHead.png";
任何想法,爲什麼?
謝謝!
您是否將圖像添加到舞臺上? – rpg600
@ Rpg600是的,我做過 – Growler