Cookies and localStorage

Distinction and Practice of Local Storage, Cook and Session Storage 1. Cookie cookies. Its size limit is about 4KB, invented by Lou Montulli, a former employee of Netscape in March 1993. Its main purpose is to save login information, such as you can see "remember passwords" when you log into a website market, which is usually achieve ...

Posted on Mon, 19 Aug 2019 20:15:32 -0700 by supinum

Episode 13: Implementing a set of ui component library (scoring component star) of vue on pc from scratch

Episode 13: Implementing a set of ui component library (scoring component star) of vue on pc from scratch 1. Location of this collection Speaking of ratings, the first way to see this form is the movie website. Each movie gets several stars. Later, there are some ways for users to choose stars manually. These ways are more intuitive and more at ...

Posted on Sun, 18 Aug 2019 03:24:12 -0700 by madkris

Complete the memory game in JavaScript in 30 minutes

Learn JS, CSS and HTML by building a memory game in 30 minutes! This tutorial introduces some basic concepts about HTML5, CSS3 and JavaScript. We will discuss data attributes, location, perspective, transformation, flexbox, event handling, timeouts, and ternary expressions. You don't need a lot of programming knowledge to read this article. If ...

Posted on Sat, 17 Aug 2019 03:47:53 -0700 by jingato

10 minutes teach you how to use python animation to demonstrate depth-first algorithm to search for a way out of the maze

What is the depth first algorithm (DFS algorithm)? An algorithm for finding the path between the initial node and the target node is often used to search the path escaping from the maze. The main idea is to search the coordinates of possible nodes around the entrance in turn, but not to repeat the same ...

Posted on Sun, 11 Aug 2019 02:12:43 -0700 by lailaigogo

Comparisons between Strict and Non-Strict Patterns in JavaScript

## Notices for Strict Model Strict mode is recommended to be set at the beginning, or within the scope. The grammatical stringent mode that appears in front of the strings when using'use strict'will be invalid, which is equivalent to no strict mode. // var mm = 1; 'use strict'; with ({x:1}) { c ...

Posted on Thu, 01 Aug 2019 01:49:28 -0700 by gli

File API File Operation Practice of HTML5

This article is from File API File Operating PracticeAll the other series are on it. Github This is the case. Welcome to communication and Star. introduce HTML5 provides us with File API specifications. Mainly related to File interface and FileReader object . This paper collates the common front-end file operations in the development of compa ...

Posted on Mon, 22 Jul 2019 06:06:57 -0700 by sgs-techie

Encapsulating some useful methods

1. Enter a value and return its data type function type(para) { return Object.prototype.toString.call(para) } 2. Array de-weighting function unique1(arr) { return [...new Set(arr)] } function unique2(arr) { var obj = {}; return arr.filter(ele => { if (!obj[ele]) { obj[ele] = true; return true; ...

Posted on Sun, 21 Jul 2019 20:34:41 -0700 by neo777ph

How to Deeply Use scss to Develop a Simple Page

This article will take a closer look at some of the scss syntax from the perspective of general development.Start one step at a time~~ Step 1: Map and Truth First get a marked psd file from Design Sister.(Of course, it is very common that there is no such marker. We can measure ourselves with the ps ruler.)Here's a tool to recommend: Avocode au ...

Posted on Sun, 07 Jul 2019 10:49:13 -0700 by shanx24

react to vue - Web pack compression package vue project (3)

Learn the third part of vue, add the following functions: 1. Add packaging function; 2. Separation of css and js; 3. Increase vue-devtools; 4. Adding song list components. This update does not do much, mainly the operation of the release and the management of the vue development tools. 1. Add Packaging Function The webpack packaging project on ...

Posted on Sat, 06 Jul 2019 15:30:25 -0700 by jipacek

Method and precautions for locating cities by using HTML5 geographic location

introduce This article will briefly describe how to locate the browser through the API provided by HTML5 and Baidu Map Open Platform. The effect is to show the provinces and cities where the users are located, that is, XXX province and XXX city. Ideas for Realization The longitude and latitude information of users is obtained by using API provi ...

Posted on Thu, 04 Jul 2019 13:58:30 -0700 by webmaster1