I set path, in tsconfig.json so that I can easily use the relative path to locate my file: tsc,js,: I would like to ask all the gods, what should I do? Orz ...
1. Today, under the typescript syntax of vue-cli3.0, install the vue-awesome-swiper plug-in. after using yarn add vue-awesome-swiper, reported an error that the module could not be found in import VueAwesomeSwiper from vue-awesome-swiper in main.t...
for example, the backend sends me an object a = { a :1, b :2, c :3} display an in the td of a table, so it s a row directly. It s ugly. I want to be . { a :1, b :2, c :3 } Can be implemented? ...
problem description it is found that it exists when looking at the VSCode source code. Class A will create Class B , Class B method needs to use Class A instance as a parameter, ts needs to define the type when declaring parameters or va...
problem description tsc compiler error the environmental background of the problems and what methods you have tried it should not be a configuration problem. because it worked well before, I just broke down the components in more detail and mo...
app needs to realize the function of taking notes and marking when reading. Now the front end needs to cooperate to write this function. Please recommend a plug-in ....
{ "compilerOptions ": { "moduleResolution": "node", "target": "es5", "jsx": "react", "sourceMap": true, "skipDefaultLibCheck": true, "skipLibCheck": true, "m...
background: is refactoring the code and finds that there are many duplicate codes that can be abstracted from their common parts. Then the same different points of two can be reflected in detail by using the compare function of webstorm. questio...
var checkAge = (rule, value, callback) => { if (!value) { return callback(new Error( )); } setTimeout(() => { if (!Number.isInteger(value)) { callback(new Error( )); } els...
problem description our project, some people use TS, some people only use JS, so public modules are written in JS, we need to add TS type declaration file d.ts, but after the declaration I found that it did not take effect, do not know how to relate? ...
I will now write a simple react component that inherits from react.component. As an intern, I see that colleagues in the company will adopt a step-by-step inheritance approach when completing a piece of content, rather than writing a straightforward com...
RT,es6 has a parent class inherited by extend, so why do you want to decorate (Decorator),? isn t it superfluous? ...
the current project and code structure are as follows - class A file (root) + class B file - class C file TypeScript class A { private b: B; constructor(options) { this.b = new B(this); } otherMethod() {} } class...
the jump code is as follows. If you change the address, the page will be updated, and the style will return to the default. How to let active run with the click? function evn(days) { window.location.href = <?= Url::toRoute([ h5 footba...
problem description when traversing ReactChildren with React.Children.forEach, you need to determine the type of child based on the attribute you hang, but writing child.type directly will cause an error: the attribute "type " does not exist on the ...
A js file is referenced in a ts import jsFile from . js jsFile within this jsFile, the syntax of es6 is used again jsFile import other from . other.js export default other then I reported an error, saying that the unexpected token import...
when applying typescript, there are complex class introduction relationships. Is there a solution for Object prototype may only be an Object or null: undefined,? it is not possible to upgrade to the latest typescript ....
click: () => { _this = this _this.scheduleName = params.row.name axios({ method: post , url: get_schedule , data: Qs.stringify({ schedule_start :params.row.name}) }).then(function (response){ _this.percentClock[_this.scheduleName...
problem description vue+typescript+vue-router: has declared global method project compilation error TS2339: Property $router does not exist on type Login . the environmental background of the problems and what methods you have tried using th...
problem description how to use vue-video-player? in vue+typescript the environmental background of the problems and what methods you have tried error Could not find a declaration file for module vue-video-player . is reported when the vue-vide...
hexo posts articles, github updates, commands are all correct, no errors are reported, and articles that have been updated are seen on github, but articles are not displayed when you open a blog ...
I want to output all possible routes, but in the end, I only output one route. I haven t figured out Orz for a long time. the following is the source code: ma mbmb.fill(0); 0 1 (x0,y0) position=[] direction=[[-1,0],[0,-1],[1,0],[0,1...
problem description the environmental background of the problems and what methods you have tried related codes Please paste the code text below (do not replace the code with pictures) what result do you expect? What is the error message a...
scene: ios Wechat A hyperlink whose picture starts with http opens the image rendering blank data in ios (Wechat) for the first time. The image will not show normal until it is refreshed again . after testing, there is no such problem in android . h...
the code is as follows function Foo(){ getName = function(){ console.log(1); }; return this; } Foo.getName = function() { console.log(2); } Foo.prototype.getName = function(){ console.log(3); } var getName = function(){ ...