0
我有一個針對我正在創建的論壇的彈出窗口系統的代碼,但該代碼不適用於Google Chrome瀏覽器,但它適用於移動設備蘋果瀏覽器。Kinetic.js javascript在Google Chrome瀏覽器上無法正常工作,但它正在使用Mobile Safari
document.getElementById('test').innerHTML="JAVASCRIPT IS FULLY FUNCTIONAL";
var w=window.innerWidth;
var h=Math.ceil(window.innerHeight/19);
var popup=new Kinetic.Stage({container:'notification',height:h,width:w});
var pla=new Kinetic.Layer();
var box=new Kinetic.Rect({x:0,y:0,width:w,height:h,fill:'#646362'});
pla.add(box);
avio=new Image();
avio.onload=function()
{
var avi=new Kinetic.Image({x:3,y:3,image:avio,width:40,height:40});
pla.add(avi);
alert('test');
popup.add(pla);
}
avio.src="testavi.png";
什麼是不工作? – projeqht