TypeScript declaration file
Introduction to Statement Document
When using a third-party library, we need to refer to its declaration file in order to obtain the corresponding code completion, interface prompts and other functions.
What is a declarative statement
If we want ...
Posted by Celadon on Wed, 14 Aug 2019 10:32:26 +0200
Question 3 - The Idea and Practice of Converting ES6 Code into ES5
Interview topics:
What is the idea of converting ES6 code to ES5 code?
Examples:
// Before conversion
const fn = () => {
console.log('The Lion of the Front End');
};
// After conversion
"use strict";
var fn = function fn() {
console.log('The Lion of the Front End');
};
Answer analysis:
...
Posted by dourvas on Tue, 13 Aug 2019 05:59:15 +0200
Web Pack 4 Learning Path-7-Optimizing Operations
Before that, my main note was to explain the operation of webpack. Next, I will mainly record the optimization of webpack.
noParse
When we introduce a command such as JQimport jquery from jquery into index.js file to parse this sentence, we will enter the JQ file by default and continue parsing to see ...
Posted by paulsiew2 on Sun, 04 Aug 2019 09:12:38 +0200
Micro Front End Project 2 (VUE)
Preface
Micro Front-end: Theory Paper Micro Front End - portal Project Micro Front End - menu & Project 1 (React)The previous article explained the application of react project in single-spa micro-front-end architecture. This article is the last one, the application of vue project in this architecture.
Project2
project ...
Posted by widget on Fri, 02 Aug 2019 12:07:42 +0200
Simple Packaging Tool Implemented by Simulating Web Pack
Webpack is a front-end project building tool. With the development of front-end ecology, webpack has become one of the necessary skills for front-end developers. When many developers start using react and vue, they will use the default single page should create instructions to create an engineering project. In fact, these engineers The projects ...
Posted by gabeg on Tue, 23 Jul 2019 11:02:17 +0200
Introduction to webpack Learning Handbook
I Weixin Public Number: Front-end practice road, welcome attention.
A couple of days ago, it suddenly occurred to my friends that in less than half a year, the first batch of 20 will be born soon. This feeling is like, now the post-90s look after 60 to accidentally our post-90s in the eyes of the post-20s have become the last century. o()o
It' ...
Posted by LAX on Sun, 21 Jul 2019 06:11:14 +0200
TypeScript Initial-Module
Learn Angular 2, Revealing Angular 2, and take notes. Angular 2 chooses TypeScript as its official primary voice constructor, which means that mastering TypeScript voice will be more conducive to the efficient development of Angular applications.
Modular
Modules are self-declarative, and the relationship between the two modules is established b ...
Posted by elangsru on Sat, 13 Jul 2019 00:55:59 +0200
Node Server Zero Foundation-Automatic Overloading of Development Environment Files
Include for use, modification and reprint have been obtained Tencent Cloud To grant authorization
Preface
In web front-end development, we will use the Watch module of Grunt, Gulp and Webpack tools to monitor file changes. What should the server do? In fact, file changes can still be monitored with the help of build tools, but we also need to ...
Posted by Daguse on Tue, 02 Jul 2019 00:04:00 +0200
Common Problems of Isomorphism and Isomorphism Using React's static Method
Code address please github View If there is new content, I will update it regularly, and welcome you to star,issue and make progress together.
1. Where does our server render data come from?
1.1 How to write isomorphic components
Sometimes the HTML structure generated by the server side is not perfect, sometimes it is not possible witho ...
Posted by ik on Tue, 25 Jun 2019 21:19:03 +0200
Introduction and basic configuration of webpack
webpack installation and command line
First step initialization (I use Taobao mirror cnpm here)
cnpm init
Step 2 Install webpack
cnpm install webpack --save-dev
The third step is to install the loader that handles css
cnpm instal css-loader style-loader --save-dev
The fourth step is to introduce other files into hello.js, which ...
Posted by phpCCore Brad on Sat, 15 Jun 2019 23:29:00 +0200