I have just come into contact with Python , and currently use python 3.6 . I have encountered some problems about class attributes. The code is as follows: class A(): def __init__(self): self.x = 0 self.y = 0 self.z = [sel...
I have multiple pages linked to the same WebSocket server. When I receive a message, I need to do different processing according to the page being displayed. Does react-navigation have a way to get the page that is currently being displayed? ...
export default class extends Controller{ @dec propName; does not work @dec propName() {} works } function dec() { ... } if I use the first method, it will not be executed in dec at all. I need to use the second writing method. I wou...
problem description the environmental background of the problems and what methods you have tried related codes Please paste the code text below (do not replace the code with pictures) index.js get an application example const app...
ask for the big answer: let obj = {a: 1, b: 2*this.a} so you can t get a, is it a this problem or can you only call a function? ...
now has the following scenario, where there are two attributes in Component, and the code is as follows: OnInit yearList: Observable<string[]>; 0yearListyearList0year year: BehaviorSubject<string> = new BehaviorSubject( 0 ); ngO...