Lenix

What is the difference between declaring a variable with and without var in javascript

If you’re in the global scope, there’s not much difference. Read Kangax’s answer for explanation If you are in a function, then var will create a local variable, “without var” will look up the scope chain until it finds the variable or reaches the global scope (at which point it will create it) There is […]

What is the difference between declaring a variable with and without var in javascript Read More »

js popup window list

1. Pop up a full screen window <html> <body onload=”window.open(‘http://lre.cn’,’example01′,’fullscreen’);”>; <b>www.lre.cn</b> </body> </html> 2. Pop up a window that has been transformed by F11 <html> <body onload=”window.open(”http://lre.cn’,’example02′,’channelmode’);”>; <b>www.lre.cn</b> </body> </html> 3. Pop up a window with a favorite link toolbar <html> <body onload=”window.open(‘http://lre.cn’,’example03′,’width=400,height=300,directories’);”> <b>www.lre.cn</b> </body> </html> 4. Web page dialog <html> <SCRIPT LANGUAGE=” javascript ”>

js popup window list Read More »

Bilibili Server Basic Performance Tuning and Evaluation Practice – AMD Articles

Author of this issue SYS team The System Department (SYS) team of Station B provides infrastructure support for all services of Station B, including data center, network, computing power, system software, and hybrid cloud management. 01 Background As we all know, Station B has become an Internet company with considerable size without knowing it. Xiaopozhan,

Bilibili Server Basic Performance Tuning and Evaluation Practice – AMD Articles Read More »

font compression tool

Method 1: sfnttool sfnttool.jar is a tool in Google’s open source project sfntly, which can extract the desired text from a specified font and export a smaller font size. Download address: https://github.com/googlefonts/sfntly This must be allowed in a java environment. So if there is no java environment, you can install the java environment first Download

font compression tool Read More »

JS strict mode (use strict) detailed

Because JavaScript syntax is not rigorous enough, it has been criticized by people. For example, when using a variable, it can be declared in advance without using the var keyword (for example: url = ‘http://javascript.p2hp.com/’; ), at this time The JavaScript interpreter automatically creates this variable for you. In order to make the code more

JS strict mode (use strict) detailed Read More »

How to use css to remove the white background of the picture and make the white background picture transparent on the web page

Generally, product list pages are all product pictures with a white background. Sometimes I feel that the white background is not good. If I want to change to a gray or other light background, do I need to reprocess the pictures? The bottom picture is displayed transparently, so that we define any background color under

How to use css to remove the white background of the picture and make the white background picture transparent on the web page Read More »

How to detect zoom level of a page

This refers to the page zoom level caused by Ctrl + scroll wheel Use Math.round(window.devicePixelRatio * 100); That’s it. … The post How to detect the zoom level of a page first appeared on Lenix Blog . This article is reprinted from https://blog.p2hp.com/archives/9789 This site is for inclusion only, and the copyright belongs to the

How to detect zoom level of a page Read More »

What are the daily maintenance contents of the server and how to properly maintain the server

Abstract: The purpose of maintaining the server is to keep the performance of the server in the best state, solve problems in time, and tune related applications and configurations without problems. The daily maintenance of the server includes hardware maintenance and software maintenance. When maintaining the server, you must first perform security testing, perform data

What are the daily maintenance contents of the server and how to properly maintain the server Read More »

HTTP/2 vs HTTP/3: Comparison

HTTP (Hypertext Transfer Protocol) is the application layer transport protocol on which the World Wide Web is based. Originally conceived in the late 1980s as a single-line text-based protocol, initially documented as HTTP/0.9 , its first fully functional iteration (v. 1.0) was documented in 1996 in RFC 1945. As the use and expectations of the

HTTP/2 vs HTTP/3: Comparison Read More »