JS regular expression creation, matching string, escape, character class, repetition and common characters
Regular expressions operate on strings
Function: search, replace and validate data
There are two ways to create regular expressions:
// Literal measure
/js/
// Constructor method
regular expression
new RegExp()
Common characters: alphanumeric characters blank;, @ (no special meaning symbol)
Two ways to match:
test, find and return true ...
Posted by Invincible on Sat, 15 Feb 2020 05:59:10 -0800
On the bug of GZIPInputStream
http://cin-ie.iteye.com/blog/859822
As for the bug of GZIPInputStream, this problem has not been solved in the latest version of jdk. Note when using gzip:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4691425
Problem Description:
When using GZIPInputStream to read the gizp file, us ...
Posted by roomyz on Thu, 13 Feb 2020 06:58:13 -0800
Use of timers
Objective: to solve the problem of inaccurate software delay by using timer.Several methods to realize timing function:
1. Software timing: software timing does not take up hardware resources, but takes up CPU time, reducing CPU utilization.
2. Time base circuit timing: for example, 555 circuit.
3. Usin ...
Posted by rstrik on Tue, 11 Feb 2020 01:28:45 -0800
Leave back to hell and enter the Promise Era
brief introduction
In the JavaScript world, all code is executed by a single thread. As a result of this "defect", all network operations and browser events of JavaScript must be executed asynchronously, so the expected results are often different. Because of JS flexibility, callback callbac ...
Posted by goatboy on Tue, 11 Feb 2020 00:36:09 -0800
The hottest front-end layout at present
1. rem Foundation
rem unit
rem (root em) is a relative unit, similar to em. EM is the font size of the parent element, and the benchmark of rem is the font size of the html element.
For example, if the root element (html) is set to font size = 12px and the non root element is set to width:2rem, then ...
Posted by esconsult1 on Mon, 10 Feb 2020 04:18:18 -0800
Linux storage IO stack -- an overview of SCSI subsystem
Summary
Hierarchical architecture of Linux SCSI subsystem:
Low level: it represents the actual driver of the physical interface with SCSI, such as the driver developed by each manufacturer for its spe ...
Posted by networkguy on Sun, 09 Feb 2020 20:20:54 -0800
spring boot+layui paging practice
The project uses layui to make a simple book search page and share it.
Like friends give a little like!!!
Realization effect
Development steps
1. Front page and JS
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
...
Posted by woobarb on Fri, 07 Feb 2020 07:02:38 -0800
Basic JavaScript learning
Origin of note learning: Top 100 projects of Duyi education Web front end
Interaction: do an operation on the page, etc., and then it returns a feedback
Binding events
Note: an event can only be bound to one processing function, which is basically equivalent to being written in html between lines
Namely ...
Posted by sbrinley on Tue, 04 Feb 2020 08:06:35 -0800
Frame Buster Buster... Need buster code
Suppose you don't want other websites< iframe >Build your site:
<iframe src="http://example.org"></iframe>
Therefore, you will anti frame, frame damage JavaScript Insert into all your pages:
/* break us out of any containing iframes */
if (top != self) { top.location.replace ...
Posted by spiceydog on Sun, 02 Feb 2020 22:22:15 -0800
vue.js parent-child component communication
Today, let's look at the communication between the parent and child components of vue.js
In vue.js, the child component cannot directly access the properties of the parent component, and props is needed to pass the data
for instance:
<!DOCTYPE html>
<html lang="en">
<head>
&l ...
Posted by Scud on Sat, 01 Feb 2020 06:26:12 -0800