Use get and set skillfully to directly manipulate object properties to realize reading and writing, which can greatly improve programming efficiency. A typical example is given: The copy code code is as follows: var test = { _Name : null, _Age : 0, //_Nam
1. Method to invalidate right-click and copy 1: Add the following code to the web page: The copy code code is as follows:<script language="Javascript"> document.oncontextmenu=new Function("event.returnVa
Preface A few days ago, during the online written test, I found that the browser needs to agree to turn on the camera. It feels like it is called by js. Because of the written test at that time, I did not expect so many problems. I had nothing to do today
At the beginning of the front end, share the implementation process of the touch screen version of the touch screen on the mobile phone. The general functions are as follows: 1. Support cyclic sliding 2. Width can be set arbitrarily, no need to be width w
After the manned page, the browser output stream is automatically closed; after that, any document.write() method that operates on the current page will open a new output stream. It will clear the current page content (including any variables or values
Recently I was doing a mouse move in and out picture event. There are several methods you can try. The first is the two methods of changing the resolution. The resolution of the mouse move in and out of the picture is different. One copy of the code is as
Window.open () Support environment: JavaScript1.0+/JScript1.0+/Nav2+/IE3+/Opera3+Window.open (Pageurl, name, parameters) Pageurl is NAM window path path
Today, I tested the interaction between the div layer and flash, and found that the div layer is always covered by the flash layer. I searched on Baidu for a while and said it was added.<param name="wmode" value="transparent" /> That's it. After I add
I started building my own website at the beginning of this year. I used a png picture with a transparent part to make the website logo. I thought it was a time, so I don’t have to consider IE6 anymore. One day when I came back from get off work and opened
Everyone knows that WordPress uses PHP mail parameters to send emails, which are all based on the Liunx environment, while Win host uses SMTP. To solve this problem, we need to install a small plug-in. I chose WP-Mail- SMTP, after testing, only if you hav
Previously, I used React + AntDesign to implement a simple timing chart, but later I had more complex requirements and required the display of 2,000 tasks at the same time, which involved performance issues. I first used React + antd+ts to implement it. A
var chils = s.Childnodes; // Get all the sub -nodes of s var Par = s.parentnode; // Get the parent node of s's parent node var ns = s.nextsbiling; // Get the next brother node of s, Var PS = S. previo