server { listen 8088; server_name localhost; -sharpcharset koi8-r; -sharpaccess_log logs host.access.log main; access_log c: access.log combined; location ~ .*? .(js|css|jpg|png|jpeg|less|sass...
aliases are set in vue.config.js const path = require( path ); function resolve (dir) { return path.join(__dirname, dir) } module.exports = { chainWebpack: config => { config.resolve.alias .set( @ , resolve( src ...
problem description Vue cannot register global components using typescript. the environmental background of the problems and what methods you have tried tried - Vue.use() - Vue.component(com.name, com) - new Vue({ components: { } }) component ...
error in introducing antd-mobile Times is not compatible with components in typescript ...
< H2 > Plan A: < H2 > directory structure: store |--Auth |--index.ts |--interface.ts |--Bank |--index.ts |--interface.ts Auth interface.ts : import {observable, action} from mobx ; import {post} from .. .. util...
this.localize is an object method getLocalize returns the value in this.localize through the parameter key passed in. how to solve the error of asking for help? the complete code is as follows: import * as path from path import *...
problem description question 1 Login.tsx class Login extends React.Component { public state = { userName: , password: } public handleChange = (event: any): void => { const target: any = event.target; const type = ...
problem description the development environment builds the TS code with Rollup, converts it to ES5, and configures it as follows: rollup.config.js import typescript from rollup-plugin-typescript2 import buble from rollup-plugin-buble impor...
in the case of non-ts, you can directly import * as methods from . index.js vue({ methods:methods }) The methods exported in index.js can be used directly in components, such as index.js exported helloworld(); In components, you can di...
...
const floor = [ { id: 1, text: , children: [ { id: 2, text: , children: [ { id: 3, text: , children: [ { id: 4, ...
problem description when using Promise, resolve keeps reporting errors error TS2304: Cannot find name resolve . the environmental background of the problems and what methods you have tried modified the lib parameter in tsconfig..json, but the ...
how do I migrate a project developed by Angular2 to Mini Program? what I find is basically mpvue or angularJS. I just need the general steps, and I ll do the rest myself. ...
react-js project, now introduces typescript, installs typescript @ types react @ types node , and configures tsconfig.json { "compilerOptions": { "experimentalDecorators": true, "allowJs": true, "ta...
is the distance of the element relative to the left and top edges of the screen, whether or not this element is detached from the document stream or the page is scrolling, how can I get it correctly? there is something wrong with the offsetTop and...
how does the front end of YY realize real-time video interaction how to implement real-time interactive video on the YY web side? the source file seems to have only video tags. So how is it implemented on the server side? is the front-end layout only ...
main.ts console.log(__VERSION__); Does have such a similar function tslint:disable ...
when using Parcel to package TS files, a lot of code will be generated after compilation. My JS does not need modularization. Is there a way to turn off this function? I just want JS to output as is, and TS to compile and output as it is. by the way, ...
projects built using 3.4.0 scaffolding ...
there are many places in the program that need to use closures, and I didn t pay much attention to memory at the beginning of writing. Now that the program is finished, it is found that if the memory keeps increasing after running repeatedly, some thin...
get the data in the vue page and assign the value to the lists value in the data character in mounted, such as this.lists=this.$route.params.lists; but the length of lists is uncertain, so the data can only be displayed through v-for <div v-f...
is there any rules that can solve the error reported by eslint? Parsing error: Unexpected token, expected} const STATUS_CONFIG = { 5 : , 4 : , -2 : , 0 : , 1 : , 2 : , 3 : , 6 : ...
this is the error message there should be a table in this blank space. paste the source code < template > below <div class="table" style="height: 100%;"> <div> <el-card class="box-card">...
requirement: requirement is to replace an img tag in a string with an attribute of the img tag (name) example: aaaaaaaaaaaa <img name="U+1F608" src=".. .. static images emoji 1f608.png" style="width: 18px;height: 18px;m...
YOU how do I add which font, and this underline is hollowed out, how to solid line? ...