Say I have a custom attribute in Aurelia and I put it on two different element.
If I have variable defined in the class called clickWhen: Date;
And if I set that in a method fired from the first element that has the custom attribute (ie `setupDoubleClick).
If a method is fired from the second element that has the custom attribute on it, is this.clickWhen
set (because the first instance has set this.clickWhen) or is it still undefined.
(I hope it is the second.)
它们是单独的实例,不会互相影响。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.