cc.Class({
extends: cc.Component,
properties: {
},
onLoad () {
var a = new cc.Vec2(100,100);
console.log(a);
},
start () {
},
// update (dt) {},
});
这是源代码,下面是报错
CCSys.js:956 The AudioContext was not allowed to start. It must be resume (or created) after a user gesture on the page. https://goo.gl/7K7WLu