Solve the problem that ajax can't move forward, backward or refresh

Solve the problem that ajax can't move forward, backward or refresh Scenario Description: At present, the front and back end basically realize the interaction of front and back interface data through ajax, but ajax has a small disadvantage, that is, it does not support the browser "back" and ...

Posted by Chris-the dude on Sun, 15 Mar 2020 20:09:04 -0700

ffplay -- source code analysis: code architecture

/* Minimum SDL audio buffer size, in samples. */ // Minimum audio buffer #define SDL_AUDIO_MIN_BUFFER_SIZE 512 /* Calculate actual buffer size keeping in mind not cause too frequent audio callbacks */ // To calculate the actual audio buffer size, you do not need to call back too often. The maximum numb ...

Posted by swatisonee on Sun, 15 Mar 2020 04:47:17 -0700

vue entry notes (entry notes for novices)

Vue Day 02 Article directory Vue Day 02 1, ES6 syntax supplement 1.1.let/var (define variable) 1.2.const 1.3. Object enhanced writing 2, Event monitoring 3, Condition judgment 3.1.1. Introduction to if basic syntax 3.1.2. case 3.1.3. Use of v-show 4, Loop traversal 4.1.1. Loop through array 4. ...

Posted by runestation on Sun, 15 Mar 2020 03:16:35 -0700

JS node access add, delete, modify and query (attach node access compatibility writing method of low version browser)

Node access add, delete, modify and query And get page element type, but node operation uses node level relationship to get elements Getting elements by parent-child sibling relationship Logical, but less compatible Generally, a node has at least three basic attributes: nodeType, nodeName and nodeVal ...

Posted by jek1134 on Sat, 14 Mar 2020 20:50:20 -0700

Open () and close () windows in JavaScript

close() closes the window, the grammar is written as follows, and then close() closes the window while opening a new one, so you can't see the open window 1 window.close(); //Close this window 2 <Window Object>.close();//Close the specified window Code Display: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta c ...

Posted by thewitt on Sat, 14 Mar 2020 09:46:47 -0700

Using javascript to complete magnifier effect

Using javascript to complete magnifier 1. Complete the css layout. The layout can be written according to personal preferences 2. Using the object-oriented idea, the first step is to click events for small pictures. You can use event delegation to judge objects, or you can use array to add click events ...

Posted by adamriley on Sat, 14 Mar 2020 05:29:04 -0700

WebView should know and should know

Catalog 1, What is WebView? What can WebView do? 2, Play WebView Commonly used API Basic use 1. Add network permission 2. Instantiate WebView 3. Set up WebClient 4. Set up WebChromeClient 5. How to interact with JS Web pages jump to other applications through Scheme 1. What is scheme? 2. If the w ...

Posted by Robert Elsdon on Fri, 13 Mar 2020 23:27:21 -0700

JavaScript warning (alert message dialog)

1 alert (string or variable); When we visit the website, we sometimes pop up a small window with a piece of prompt message written on it. If you don't click "OK", you can't do anything to the web page. This small window is implemented by using alert. The above is the alert() syntax 1 <!DOCTYPE html> 2 <html> 3 ...

Posted by $kevan on Fri, 13 Mar 2020 07:19:01 -0700

The summary of js anti shake and throttle

In recent projects, the test proposed that clicking the button quickly for many times would trigger multiple calls of the interface. Later, when querying the data, you can use the anti shake optimization, which just integrates the use of anti shake and throttling for your own learning Code: <!DOCTYPE html> <html> <head> ...

Posted by shamuraq on Fri, 13 Mar 2020 03:24:07 -0700

Use jQuery for e-mail validation

I'm new to jQuery and want to know how to use it to verify email addresses. #1st floor I would recommend Verimail.js And it also has one JQuery Plugin . Why?Verimail supports the following: Syntax validation (according to RFC 822) IANA TLD Validation Spelling suggestions for the most common TLD and e-mail domains Deny ...

Posted by sfullman on Thu, 12 Mar 2020 19:33:35 -0700