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?
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.
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.