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...
problems with store data access in vuex add the shipping address, which is stored in store, and return to the current page after adding it. Why does the data automatically read the information in the shipping address and need to refresh it? 1. ...
when using antd-mobile, I found that the Modal mask flashes when the mask component fades in and out. later, when I used chrome s animation to view the animation, I found that the animation of the mask layer was executed twice, that is, the first whit...
arr= [{id:1,name:2}, {id:2,name:22}, {id:3,name:222}]; finally want to realize arr= [2JI 22222]; is there anything ES6 can do? ...
when learning the annotation capabilities of regular expressions, comments always cause matching exceptions. For example, use d{2} match 24 can be successful. If you add a comment, it becomes d{2}(?-sharp) match 24 fails. after looking up a ...
for (var i = 0; i < objJson.length; iPP) { if (dtString.indexOf(getHeadString(objJson[i].name)) == -1) { dtString += getHeadString(objJson[i].name) + , ; optgroup = $( <optgroup> ); optgroup.a...