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...
package iOS, with script on the Jenkins CI of intranet cannot connect to the extranet , so specify CODE SIGN and PROVISIONING PROFILE in the packaging command as Manual . xcodebuild archive -project ${projectName}.xcodeproj -scheme ${proj...
suppose I have the following code: from django.contrib.auth.models import User us = User.objects.all() -sharp idis_active v1 = us.values("id", "is_active") -sharp ( User ): other= hehe -sharp [{"id": 1, "is_a...
use the Modal component of iview, because the scene needs to use the global method, this.$Modal.confirm (.) The contents of the dialog box will be render out. How should the confirmation button and cancel button of footer be hidden in such a call? found...
how to change the following array array(2) { [0]=> array(2) { [0]=> string(20) "18052910110100956524" [1]=> string(12) "102101016056" } [1]=> array(1) { [0]=> string(12) "1011015...
VUE rookie, wrote a BUS to pass parameters. There is no problem between sibling components of the same code. If used on parent-child components, the parent component cannot get the value passed by $on. There is no problem with the reference of BUS. I ha...