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...
centos,nginx configures the port. I really want to know the possible cause of this problem. Please ask the seniors to solve the problem ....
I got value, but push it into the history array. There is no value in history searchinto(e) { console.log(e) const value = this.data.search.content; const history = this.data.history; console.log(value); history.push[value]; ...
<svg xmlns="http: www.w3.org 2000 svg" xmlns:xlink="http: www.w3.org 1999 xlink" version="1.1" style="width:calc(100% - 20px); height:300px; padding:10px; "> <path d="M0 0 C191.8 0, 191.8 0, 383...
is there any way to render the jinja template with js and replace the variables in it is that you can replace the syntax of the following python with javascript, saying Hello {{name}}! And the js variables let name = John Doe become-> u Hel...
when I click the leftmost plus sign, I add a piece of data, how to put this data in front of all the data! Urgently needed! Thank you! ...