Home> Web design tutorial
All Dreamweaver tutorial Javascript tutorial HTML tutorial CSS tutorial Experience and skills DHTML tutorial Web effects WEB standardization
Web design tutorial
  • AngularJS implements the function examples of adding, deleting, up and down the data list.

    AngularJS implements the function examples of adding, deleting, up and down the data list.

    Reproduction example code <!DOCTYPE html><html lang="en" ng-app="myapp" ng-controller="myCtrl"><head><meta charset="UTF-8"><title> Title</
    2025-08-17
  • Quick solution to the form cannot be submitted using submit method js and jq

    Quick solution to the form cannot be submitted using submit method js and jq

    Yesterday, when I was making a form to submit content asynchronously, I encountered a very strange problem. The submit() method could not be submitted. Every time I submitted, the current is refreshed. I found that the network packet capture was found. Ev
    2025-08-17
  • 500,000 words in 1 second! JS realizes keyword matching

    500,000 words in 1 second! JS realizes keyword matching

    In scenarios like forums and chat rooms, in order to ensure user experience, we often need to block a lot of bad words. For single keyword search, it is naturally more efficient in indexOf and regular methods. However, if there are many keywords, if you r
    2025-08-17
  • Detailed explanation of windows.open() and windows.close() methods in JavaScript

    Detailed explanation of windows.open() and windows.close() methods in JavaScript

    Detailed explanation of the windows.open() method: window.open(URL, name, features, replace) is used to load the specified URL into a new or existing window and return a Window object representing the new window. It has 4 optional parameters: URL: an opti
    2025-08-17
  • Vue.js Form Verification Plugin

    Vue.js Form Verification Plugin

    Vuerify is a simple and lightweight data verification plug-in. Built-in basic verification rules and error prompts. Customizable rules, and the rule types support regular, functions, or strings. Verification rules can be registered globally or within comp
    2025-08-17
  • Solution to JS function overloading

    Solution to JS function overloading

    In object-oriented programming, many languages support function overloading and can do different operations according to different numbers and types of parameters passed by the function. However, JS does not support it, so we need to do some extra small a
    2025-08-17
  • What is Node.js? Node.js details

    What is Node.js? Node.js details

    Introduction If you have heard of Node, or read some articles that claim how great Node is, you might be thinking, “What exactly is Node?” Although not for everyone, Node may be the right choice for some people. To try to explain what Node.js is, this art
    2025-08-17
  • JQ selector_Implementation method for selecting the Nth child element of the same type

    JQ selector_Implementation method for selecting the Nth child element of the same type

    I wanted to select the Nth LI in all ULs before, so I wrote this: $('ul li:eq(N-1)') , and the result is to select the Nth element in the result obtained by the LI below all ULs. This thinking is wrong (because it is quite pleasing to: select the
    2025-08-17
  • Solution to insert a row on and off the form form

    Solution to insert a row on and off the form form

    After inserting the form form, a line will often be empty on the upper and lower form, so that the layout of the web page will be ugly. You only need to use css to control the form margin=0 to solve this problem. I wonder if you have noticed it when creat
    2025-08-17
  • JS verification of real name and ID number, simple example of mobile phone number

    JS verification of real name and ID number, simple example of mobile phone number

    The interface used in recent projects requires calling real-name authentication. The price of real-name authentication interface is not a few cents higher than that of SMS. Therefore, the conditions for calling real-name authentication must be strictly co
    2025-08-17
  • JS regular expressions that remove spaces and line breaks (recommended)

    JS regular expressions that remove spaces and line breaks (recommended)

    A few days ago, I encountered a problem and it took me a long time to solve it. I was so angry! Putting a string into setTimeout cannot execute the method. Later, I found out that there is an additional line break at the string, so I can't find it wit
    2025-08-17
  • Explanation of the usage of using let statements to declare scope in JavaScript

    Explanation of the usage of using let statements to declare scope in JavaScript

    Syntax let variable1 = value1 parameter variable1 The name of the variable to declare. value1 assigned to the initial value of the variable. Note Use the let statement to declare a variable whose scope is limited to the block that declares it. You can ass
    2025-08-17
  • js get page height and width compatible ie firefox chrome etc.

    js get page height and width compatible ie firefox chrome etc.

    The code copy is as follows:<script> //得到页面高度 var yScroll = (document.documentElement.scrollHeight >document.documentElement.clientHeight)
    2025-08-17
  • JS implements text truncation function

    JS implements text truncation function

    I used jq to do a text truncation function, but it would be too troublesome to implement this function for projects that do not use jq. Here is a js text truncation function. Directly upload the code. HTML (for testing):<div> I am pox I am pox I am pox I
    2025-08-17
  • Establishing HTML hyperlinks (6)——Introduction to HTML Tutorial

    Establishing HTML hyperlinks (6)——Introduction to HTML Tutorial

    (Figure 1) 2. Image link Image link means that the user can jump to another place by clicking on an image or part of the image. The tag that links through images is<a href=URL><img src=></a> . Where the value of href can be a URL or a relative path, src c
    2025-08-17