Category:WEB Front End

  • Using typescript in react

    Time:2020-1-24

    Preface It is much more comfortable to write react with typescript than to write Vue. React’s support for TS is a natural partner. If you want to refactor a project with TS, unlike Vue, which is very destructive to the project, react can relatively easily achieve refactoring. By the way, the globally installed create react […]

  • Today, I’d like to share some basic algorithms commonly used in JS

    Time:2020-1-24

    Today, I’d like to share with you the basic algorithms commonly used in JS; 1. Two digit exchange order var a = 2,b=4 function fun(a,b){ b = b – a ;// a = 2 ; b = 2 a = a + b // a = 4 ; b = 2; b = a – […]

  • Tao Qiang Kai

    Time:2020-1-24

    Page Jump:          [routerlink] = “[‘/ stock details’]” / * jump to page*/ [queryparams] = “item” / * parameter passed * / >     Value of new page:            import { Component, OnInit } from ‘@angular/core’; Import {activated route} from “@ angular / router”; / * import […]

  • Share the magic of JavaScript array method reduce

    Time:2020-1-24

    Preface In JavaScript array methods, compared with map, filter, foreach and other commonly used iterative methods, reduce is often ignored by us. Today, let’s explore the advantages of reduce in our actual development. Let’s start with the introduction of reduce syntax. grammar array.reduce(function(accumulator, arrayElement, currentIndex, arr), initialValue) If the initial value is passed in, the […]

  • Website does not allow direct copy of page content or information release method

    Time:2020-1-24

    Now many websites are not allowed to directly copy some content or information on the page, but require to register an account or need points, etc., but sometimes they are in a hurry and don’t want to get an account at all, so they have to make it hard. There are many ways to remove […]

  • HTML + CSS + JavaScript to display the selected effect with mouse movement

    Time:2020-1-24

    1. Display effect: 2, HTML structure <div class=”process_list-lpu”> <div class=”process_line”></div> <div class=”content_list”> <ul> <li><a href=”javascipt:;”>End customer get product<b>1</b></a> </li> <li><a href=”javascipt:;”>Log in EFOSE website and present installation or maintenance requirements <b>2</b></a></li> <li><a href=”javascipt:;”>EFOSE prefer contact service point<b>3</b></a> </li> <li style=”margin-left:115px;”><a href=”javascipt:;”>Customer contact service point to get service<b>4</b></a> </li> <li><a href=”javascipt:;”>Customer pays the bill directly or […]

  • Getting started with Ajax (1)

    Time:2020-1-24

    1 what is Ajax Ajax (asynchronous JavaScript and XML) is translated into Chinese as “asynchronous JavaScript and XML”. That is to say, JavaScript language is used to interact with the server asynchronously, and the data transmitted is XML (of course, the data transmitted is not only XML). The biggest feature of AJAX is that when […]

  • Solve the problem that the parent node is also checked when the first two child nodes are checked continuously and the second time the default is selected when the El tree lazy is loaded

    Time:2020-1-23

      When using the lazy loading and default checking function of El tree, if the first time several consecutive nodes are checked and the second time the default check is entered, the default check has started (the loaded sub nodes are checked by default) because the El tree sub nodes have not been fully loaded […]

  • Shopping cart cases

    Time:2020-1-23

    Since learning the front end, I’ve been curious about how shopping carts of large websites like Jingdong and Taobao can be unified, so I’ll search some materials! After a general look, I’ve been fighting. As the saying goes, reading ten thousand books is better than walking ten thousand miles! Shopping cart is just a small […]

  • Vue.js source code analysis (XXVII) details of advanced application asynchronous components

    Time:2020-1-23

    When our project is large enough, many components will be used. At this time, it will take time to load all components at once. It is unnecessary to load all the components at the beginning. At this time, you can use asynchronous components to optimize. Asynchronous component simply means that it will not be loaded […]

  • An example of node judging whether a file is a folder through FS module

    Time:2020-1-23

    Through fs.stats and states.isdirectory 1. The fs.stats object provides information about a file. Objects returned from FS. Stat(), FS. Lstat(), FS. Fstat(), and their synchronized versions are of this type. If bigint is true in the options passed in to these functions, the value will be of type bigint instead of number. Such as: Stats […]

  • HTML form value passing samples are passed through get

    Time:2020-1-23

    The google.html interface is as shown in the figure The code is as shown in the figure: (it is relatively simple, that is, an input input input box and an input submit button. Note that the type is submit, not button) Copy code The code is as follows: <html> <head> <title>Winbobo</title> </head> <body> <div align=”center”> <form […]