在chrome下没问题,移植到微信小程序就。。继承关系: upPencil extend pencils extend sprite123456789101112export class upPenc 在chrome下没问题,移植到微信小程序就。。继承关系: upPencil extend pencils ext
在chrome下没问题,移植到微信小程序就。。继承关系: upPencil extend pencils extend sprite
123456789101112export class upPencil extends pencils{ constructor(passTop){ const image = dataStore.getInstance().res.get('upPencil'); const y = passTop - image.height; super(image,y); this.type = "up" } draw(){ super.draw() }}调用开始处:
1 pencil.draw(); //画出每个铅笔pencils中出错位置
1 _get(pencils.prototype.__proto__ || Object.getPrototypeOf(pencils.prototype), "draw", this).call(this);pencil中出错位置
1234567 _createClass(upPencil, [{ key: "draw", value: function draw() { //this.y = this.top -this.srcH; _get(upPencil.prototype.__proto__ || Object.getPrototypeOf(upPencil.prototype), "draw", this).call(this); } }]);【感谢龙石为本站提供数据治理平台技术支撑 http://www.longshidata.com/pages/government.html】