你的问题是因为dimg是image,ape是sprite。默认dimg是通过skin赋值的,但是你点击图片后把dimg传过去在通过loadImage赋值,其实loadImage跟skin赋值的操作是不一样的。你这样调整下就行了:
[code] function showui() {
showui.super(this);
var arr2 = new Array();
arr2.push(this.dimg);
this.dimg.on(Laya.Event.CLICK, this,apeclick2, arr2);
}
function apeclick2(that) {
console.log("apeclick sucess");
that.skin = "../img/5.jpg";
console.log(that);
that.zOrder = 1;
}[/code]