部分代码如下:
onkey :function(ev){
ev = (ev)?ev:((window.event)?window.event:" ")
keyCode = ev.keyCode?ev.keyCode:(ev.which?ev.which:ev.charCode);
switch(keyCode){
case 37://left
this._onleft(ev);
break;
case 38://up
this._onup(ev);
break;
case 39://right
this._onright(ev);
break;
case 40://down
this._ondown(ev);
break;
}
},
onkey :function(ev){
ev = (ev)?ev:((window.event)?window.event:" ")
keyCode = ev.keyCode?ev.keyCode:(ev.which?ev.which:ev.charCode);
switch(keyCode){
case 37://left
this._onleft(ev);
break;
case 38://up
this._onup(ev);
break;
case 39://right
this._onright(ev);
break;
case 40://down
this._ondown(ev);
break;
}
},
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货