2021-09-18 Day21-JS 11th Day PC-side Web Page Special Effect
I. PC-side web page effects
1.Element offset offset series
1.1 offset overview
Offset is translated as an offset, and its position (offset), size, and so on can be dynamically obtained using the offset series related attributes.
Get the distance of the element with the positioned parent elementGet the size (width and height) of the element ...
Posted by Rob the R on Sun, 19 Sep 2021 14:10:56 -0700
(javascript learning) Review Record 1
1. Basic Use
1.1 Use
1. Internal Label 2. External labels
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- script Write code-->
<script>
//<!--Pop-up window-->
alert("hello world");
</script>
<!--External introduction--&g ...
Posted by wsh on Sun, 19 Sep 2021 12:42:08 -0700
The experience summary of exporting pdf in the foreground (html2canvas.js and the browser's own printing function - print.js) and some methods of exporting pdf in the background
Two ways to export pdf from the foreground
html2canvas.js & pdf.js
brief introduction
We can directly use html2canvas on the browser side to 'screenshot' the whole or part of the page. However, this is not a real screenshot, but by traversing the page DOM structure, collecting all element information ...
Posted by kurdishvoice on Sun, 19 Sep 2021 02:50:44 -0700
What is media query
Sorting of media query knowledge points
1. What is media query?
Media query is the if statement of the style sheet, which determines which CSS to execute through various conditions.
@media only screen and max-width:600px{
.aside{
width:500px;
}
}
compatibility:
<!–[if lt IE 9]>
<script src="http://cdn.staticfile.org/livingsto ...
Posted by jamesdk on Sat, 18 Sep 2021 18:36:09 -0700
Front end beginner's notes: JavaScript objects
JavaScript object
An object is a collection of related data and methods (usually composed of some variables and functions, which we call attributes and methods in an object)
1. Object creation
Literal mode
var obj = {
name:'TTTony',
age:21,
sayName:function(){
console.log(this.name);
}
}
Constructor Pattern
var obj = new Object(); ...
Posted by cyball on Fri, 17 Sep 2021 23:58:40 -0700
This is the only super detailed explanation of Object object methods in JavaScript
In JavaScript, almost all objects are instances of object type, and they inherit properties and methods from Object.prototype. The object constructor creates an object wrapper for the given value. Object constructor, which creates an object based on the given parameters.
If the given value is null or undefined, an empty object is created a ...
Posted by forumnz on Fri, 17 Sep 2021 05:05:36 -0700
Garbage collection and memory leaks
Garbage collection mechanism
The Javascript of the browser has an automatic garbage collection mechanism, and the execution environment will be responsible for managing the memory used during code execution. The principle is: the garbage collector will periodically (periodically) find out those variables that are no ...
Posted by csueiras on Thu, 16 Sep 2021 10:44:18 -0700
Transition, animation effect, beautifying interface
Transition means transition in English. Transition can be an element that switches between different states with different transition effects. It consists of four parts: the name of transition attribute, the time required for transition, the mode of transition and the delay time of transition. 1. Name of transition attribute
Transition propert ...
Posted by phpScott on Wed, 15 Sep 2021 14:18:02 -0700
Cookie, cookie encapsulation, cookie deletion, synchronization and asynchrony, Ajax,Ajax writing steps
cookie: session tracking technology, which is a variable stored on the visitor's computer
Set cookie s:
document.cookie = "key=value";
The use of cookie s must have a server;
Get cookie: the obtained data is a key value pair string
The two strings are separated by semicolons and spaces
Session level cookie
The life cycle of ...
Posted by cage on Tue, 14 Sep 2021 21:38:19 -0700
Squid proxy application
catalogue
1, Squid proxy server
1. Function of squid proxy server
2. Working mechanism of the agency
3. Type of agent
4. Benefits of using agents
2, Squid agent installation
3, Build traditional agent
Environmental preparation
Configuring: squid server
Configure web1 server
Configure win7
4, Build transparent proxy
Sq ...
Posted by Cheap Commercial on Tue, 14 Sep 2021 19:27:25 -0700