84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Question: I extended the prototype of Object and found that it could not be extended. Is it because vue has already done underlying processing on the prototype of Object?
光阴似箭催人老,日月如移越少年。
Just click on it, no.
How is it possible? The object is the constructor that comes with the browser and belongs to the scripting language. Vue is a js script development framework. Because it integrates styles and DOM, and can also be developed in a modular manner, it is very powerful, but it is also developed based on the browser interface. The bottom layer you are talking about should be the bottom layer of the framework. Object is the object of language. Vue is based on this. Listening to other people’s explanations is not as good as sitting down and trying it yourself.
It is not a good idea to directly extend the prototype of Object. This is a trap.
Just click on it, no.
How is it possible? The object is the constructor that comes with the browser and belongs to the scripting language. Vue is a js script development framework. Because it integrates styles and DOM, and can also be developed in a modular manner, it is very powerful, but it is also developed based on the browser interface. The bottom layer you are talking about should be the bottom layer of the framework. Object is the object of language. Vue is based on this. Listening to other people’s explanations is not as good as sitting down and trying it yourself.
It is not a good idea to directly extend the prototype of Object. This is a trap.