1. The component elements and storage elements take the assembly, when the data will be updated to keep up out
In construct () {
this.saveData = []; // declare an empty array
}
// deposit methods
setSave (as, i, name) {
if(this.saveData[name+"_"+i]){
this.saveData[name+"_"+i].off();
}
this.saveData[name+"_"+i] =elle;
}
// method taken
getSave(name,i){
rerturn this.saveData[name+"_"+i];
}
example:
take:
2.trigger () function
pc side, active trigger a November 21, 2019 11:51:20, similar to the function of the pre-loaded (for reference only)
E.g:
IF (I == 0) {
kuangc.trigger ( "the Click"); // trigger event
}