something like this doesn t seem to work. ...
now the situation is like this. My component is written in JSX as a child component. The props, sub-components that are not collected by the parent component should be picked up by this.$attrs, and they have indeed been received, but how can they be wri...
problem description the company is going to develop an e-commerce website, which is developed by java in the background, and the front-end project has always been developed using vue.js, but the single-page mode is not friendly to the search engine, s...
function getRectArea(width, height) { if (isNaN(width) || isNaN(height)) { throw err } } try { getRectArea(3, A ) } catch (e) { console.log(e) } when I use such a piece of code, I will report an error: Expected an object to be thrown;...
problem description now it s an ajax cross-domain request. The json string format is returned at the background, but I don t have the background code. Ajax always enters error, but the error status codes returned are 4 and 200. I hope the gods can h...
function People(name) { this.name = name; this.sayName = function () { console.log( my name is: + this.name); } } People.prototype.walk = function () { console.log(this.n...
function __matchArgs__(fn) { return function (...args) { console.log(args) if (args.length !== fn.length) { throw RangeError( Arguments not match! ); } return fn.apply(this, args); } } var add = __ma...