I read this blog https: www.cnblogs.com nullc... while learning about js s parasitic composition inheritance, and I don t quite understand one of them. Paste it here and ask: parasitic combinatorial inheritance: inherits properties by borrowing co...
Code: <script> function Dog(){} var dog = new Dog(); var dog1 = Object.create(dog); console.log(dog1._proto_); console.log(Object.getPrototypeOf(dog1)); < script> ...
echart echarts function _PercentPie (options) { this.backgroundColor = options.backgroundColor || -sharpfff this.color = options.color this.fontSize = options.fontSize || 14px this.domEle = options.domEle this.va...
problem description I am the first time to use Vue+typescript to organize a project, and now I encounter a problem, that is, I mount the encapsulated axios to Vue.prototype, and there is no problem in using it, but TS will make an error? related cod...
I javascript A novice, recently encountered a problem that I have been unable to understand, as follows: var A = function() { return new B() } var B = function() { this.name = B } var a = A() console.log(Object.getPrototypeOf(a) == B.pro...