AJAX dynamically obtains values from the database through manual splicing and dynamically splices the spliced JSON to the front-end page——AJAX

<!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Title</title> </head> <body> <script type=”text/javascript”> window.onload = function () { document.getElementById(“show”).onclick = function () { var ajax = new XMLHttpRequest(); ajax.onreadystatechange = function () { if(ajax.readyState === 4) { if(ajax.status === 200) { var fromJava = ajax.responseText; var json = JSON.parse(fromJava); console.log(json); var html = “”; for (var […]

How to split and splice strings?

String segmentation and splicing are common operations in C language programming, especially when processing text data. In this article, I will explain in detail how to split and splice strings in C language, including methods of using standard library functions and manual manipulation of string arrays, as well as some practical application examples. String splitting […]

el-tree implements radio selection, parent-child nodes are not related, and names are spliced according to the parent-child level.

Requirements: 1. Menu tree radio selection 2. The parent and child nodes are not related and can be checked. 3. Splice the selected nodes into the name echo page according to the parent-child level (if the second level is selected, you need to get the first-level name and splice it together: first-level/second-level) 4. The last […]

After the NC65 free report parameters are set, after the report is published as a node, click Query, and after entering the conditions in the query box, the parameter value is not spliced into the sql solution

After the NC65 free report parameters are set, after the report is published as a node, click on the query, and after entering the conditions in the query box, the parameter value is not spliced into the sql solution Put the sql statement in the semantic analysis model, set the fields and query query The […]

Methods of JS arrays (super detailed, including understanding) push, pop, unshift, shift, splice, slice, concat, join, revres, indexOf, sort, filter, map

A collection of methods in an array will change the original array: (1) The push() method adds one or more new elements at the end of the array and returns the length of the new array. const arr = [1, 2, 3,] arr. push(4, 5, 6) console.log(arr);//[1,2,3,4,5,6] console.log(arr.push(4, 5, 6));//6 (2) The pop() method deletes […]

Apply the BEM specification in vue3, use the sass function to splice the BEM class name, and export sass variables to access in js

BEM specification in css Bem is a class naming specification in CSS, and elementui names components according to the bem specification. Bem meaning: Block represents a block, such as an input component, which is a component block, and the hierarchy is divided by -: el-input Element represents one of the elements in a block, such […]

Web mouse clicks to create elements, hot spots, markers, coordinates, punctuation, mapping, querySelector, createElement, appendChild, removeChild, splice, target

Article directory Functional description full picture tagged version jquery simple image markup version Complete element background stamped version Add, delete, modify and check the full version Coordinate mapping, the coordinates will change according to the screen size hint Function description JavaScript gets the relative coordinate position of the image when the mouse is clicked and […]