Create an htm file and paste the following code in and open the test to copy the code code as follows:<script> function openjsb(){ var shell = new ActiveXObject("WSCRIPT.Shell"); shell.Run(
Today, I accidentally opened the debugging of WeChat jssdk and found that the debugging information always prompted an error in signature. The "occasionally" of the API did not take effect two days ago, not because the code has not been executed
When performing array operations, you often encounter the problem of removing duplicates. The following is a brief introduction to the method of deduplication of arrays. indexOf deduplication Array.prototype.unique1 = function() {var arr = [];for (var i =
When building a website, you will inevitably encounter the problem of page redirection. Is the new page opened on the current page? Or open in a new window? Do you need to jump according to the parameters or you need to pass the user's confirmation be
Recently, news came out. Four employees of Alibaba's network security department used web page vulnerabilities to write JS scripts to grab mooncakes, so they were intrigued. They wanted to know how to write this JS script and how to implement various
The birth of cookies is because the HTTP protocol is stateless, and the server-side services must be stateful. The original purpose of the birth of cookies was to store status information in the web for easy use on the server side. For example, determine
When I was working on a project, I encountered the need to automatically convert the lowercase amount to uppercase after entering the lowercase amount. After some research, I have compiled the following code and shared it with you. I hope it will help to
This article describes how JS simply removes duplicates in an array. Share it for your reference, as follows:<!DOCTYPE html><html lang="zh-cn"><head><meta charset="UTF-8"><title></title>
The default loading method of js through script tags is synchronized, that is, after the js in the first script tag is loaded, the second one begins to be loaded, and so on, until all the js files are loaded. And the dependencies of js must be ensured thr
The idea of "quick sorting" is very simple. The entire sorting process only requires three steps: (1) In the data set, select an element as the "base" (pivot). (2) All elements smaller than the "reference" are moved to the le
As a loyal user of Vue.js, I think it is necessary to write some articles to praise this beautiful language. My overall evaluation of it is "simple but elegant, small but not lacking in talented people". The following will introduce Vue.js to yo
The so-called dynamic event addition essentially refers to event delegation in js. We know that in js, event processing can only be bound to the currently selected element, in other words, event processing can only be bound to the elements that already ex
This is a cool HTML5 Canvas animation. It will simulate the animation effects of fireworks blooming in real life. The effect is very realistic. Let’s briefly analyze the process and code for implementing this HTML5 fireworks special effect. It is mainly c