Moment For Technology

Text overflow is displayed as an ellipsis

| normal | continuous whitespace will be merged, line breaks will be treated as whitespace to deal with. Line breaks in the fill "line box, box (line boxes)" is necessary when the | | | nowrap | continuous whitespace will be merged. But don't allow newline | | | pre | continuous whitespace will be preserved. In the case of a newline character or < Br > element will wrap | | | the pre -...

Classes in TypeScript

In JS and TS there is a definition of a class. A class describes the common properties and methods of the object being created. 1. Main module fields in a class: Fields are variables declared in a class. Fields represent data about an object. Constructor: called when a class is instantiated and can be an object of the class

Lottie - Web animation library for basic use

In this case, you can render the target animation by placing the JSON file directly into Lottie's Path configuration item. High efficiency, good effect. Animations contain specific business data for the current page, which is rendered by Lottie and then updated in real time with Lottie animations. Specific reference: zhihu | modified dynamically Lottie examples in the text in the said...

Talk about uploading and downloading files

Front-end development is always inevitable about the file upload, download requirements. Here is a summary of common methods, welcome to discuss and ridicule. The most traditional way to upload a file is to upload a file using a form form. Just set encType to multipart/form-data. This way to upload files does not need JS, and there are no compatibility problems, all browsers support, on...

Tween Icon implementation

In the normal development, sometimes in order to show some cool effects, but the display color is more rich, sometimes a combination of colors will be used to present, at this time will use the gradient icon, just in the project icon also used the gradient icon. So what are the ways to do that. use

Nodejs require function

The version of this document is V11.12.0. This article mainly analyzes the result of Nodejs require import JSON and JS files, and briefly involves Nodejs module export module.exports and exports usage. Therefore, the study of Nodejs require is extended. In the Node...

A year of front-end interview to upgrade the road (I)

2017 bachelor's degree, hangzhou, front-end program yuan. Before April 17, SHE was a cute girl with UI. She positioned herself as an interactive god and was keen on researching product user experience. In March, 2017, I entered the company as an intern of UI design. Due to the uncertain prospect of UI development, I decided to transfer to the front of the company after a period of careful consideration (a pat on the head), and learned by myself for a period of time and followed by the experience.

About (Moment For Technology) is a global community with thousands techies from across the global hang out!Passionate technologists, be it gadget freaks, tech enthusiasts, coders, technopreneurs, or CIOs, you would find them all here.