需要加载一些图片和音频资源,伪代码如下:data () { assets: [] },methods :{ getAssets () { var que = new createjs.LoadQueue(true); que.setMaxConnections(5); que.on('fileload', this.handleFileLoad, this); que.on('complete', this.createLoading, this); }, handleFileLoad (event) { this.assets[event.item.id] = event; //这里根本进不来 }, createLoading (e) { // ... }}不知道是不是vuecomponent对象中传入的this的问题,求解。
添加回答
举报
0/150
提交
取消