Tag:html5

  • Pushstate + Ajax to update the page without a brush

    Time:2019-12-15

    introduce Ajax technology is absolutely necessary in modern web, but AJAX is not friendly to search engine, and it destroys the jumping logic of web browser. Pushstate is a new technology to solve this problem. Method realization pushStatepushState(state,title,url) Simply put, the method is to stack the current state state, change the current address to URL, […]

  • [leetcode series] 001 – sum of two numbers

    Time:2019-12-15

    Title: Given an integer array nums and a target value target, please find the two integers with and as the target value in the array and return their array subscripts. You can assume that each input corresponds to only one answer. However, you cannot reuse the same elements in this array. Example: Given nums = […]

  • Three ways of form validation in element UI

    Time:2019-12-15

    The element UI that has been used in recent projects as the front-end framework makes the following summary for the most commonly used form validation: The first common method: add rules {object} to the form <el-form class=”apply-form first-form” :model=”formData” :rules=”rule” ref=”form”> < El form item label = “name” prop = “visitorname” > < El input […]

  • An example of indexeddb database in HTML5

    Time:2019-12-15

    Preface In the local storage of HTML5, there is a database called indexeddb. This database is a NoSQL database stored in the local of the client, which can store a lot of data. From the first part: HTML5 Advanced Series: web storage, we know that web storage can easily and flexibly access simple data locally, […]

  • Front end interview 3 + 1-day 104

    Time:2019-12-14

    Today’s knowledge (July 29, 2019) – day 104 [HTML] talk about<html>What’s the function of labels? [CSS] what are the differences between inline and block level elements, and how to transform them? [JS] what’s the difference between JSON and JSON? [soft skills] what is domain name resolution? Brief introduction to its basic process Project address: front […]

  • What do you need to know

    Time:2019-12-14

    There are generally two forms of front and back end parameter transmission: key=valueFormal parameter passing (i.e. parameter form)bodyFormal parameter transfer (transfer JSON data to the backend) Pass parameter as key = value 1.If the get request is used, the request URL displayed by the browser will automatically add parameters such as “a = 1 & […]

  • Read the source code of react-8

    Time:2019-12-14

    Read the source code of react-8 ReactHooks HookyesReact 16.8New features for. It allows you to writeclassUse in case ofstateAnd othersReactCharacteristic. import { useCallback, useContext, useEffect, useImperativeHandle, useDebugValue, useLayoutEffect, useMemo, useReducer, useRef, useState, useResponder, } from ‘./ReactHooks’; useState useStateIt will return a pair of values: the current state and a function that lets you update it, […]

  • HTML5 new label datalist realizes dynamic matching between input box and background database data

    Time:2019-12-14

    Recently, there is a small function involved in the project. When customers select suppliers, it is obviously not practical to directly generate a drop-down box due to the large number of suppliers (about 3000), so they change the solution. They plan to use the new tag datalist of HTML5 to automatically enter the database for […]

  • [electron] kujiale client development practice sharing Download Manager

    Time:2019-12-13

    Author: Zhong Li, PC client manager of kujialeOriginal address: https://webfe.ku Jia le.com/electronic-ku-jia-le-ke-hu-duan-kai-fa-shi-jian-fen-jiang-cheng-tong-xin/Kujiale client: download address: https://www.kujiale.com/activity/136Background: we have accumulated a lot of valuable experience and best practice after the successful revision of kujiale client in V12. There is relatively little knowledge about electron in the front-end community, so we hope to share these contents in […]

  • HTML 5 realizes file asynchronous upload function

    Time:2019-12-13

    1 Introduction It’s never pleasant to develop file upload function, especially asynchronous upload. It’s also very uncomfortable to use iframe and flash upload scheme. This paper briefly introduces how to use HTML5’s formdata to realize the asynchronous upload of files, as well as the upload progress bar and file size verification. The server uses the […]

  • Lua web rapid development guide (1) – preliminary understanding of CF framework

    Time:2019-12-13

    Author: Candy mi What is CF? CF full name: core framework. A high-performance Lua network framework based on reactor event driven and collaboration. Currently, it is mainly developed for HTTP application CF mainly implements the server including HTTP and HTTP over websocket protocol, which can easily maintain thousands of long connections by using lightweight protocol […]

  • CSS text model roaming Guide

    Time:2019-12-13

    Preface I was just going to review before writing this articleline-heightandvertical-heightThese two attributes are just two. I found that I fell into a big hole and saw many articles on the Internet. Finally, I decided to start over again. This article is a record of this time This time, though, the storyline-heightandvertical-alignThese two attributes cause, […]