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
  • NodeJS uses Promise to encapsulate asynchronous functions

    NodeJS uses Promise to encapsulate asynchronous functions

    During the process of writing Node.js, continuous IO operations may lead to "pyramid nightmare". The multiple nesting of callback functions makes the code difficult to maintain. CommonJs' Promise is used to encapsulate asynchronous functions
    2025-05-26
  • Deep understanding of JavaScript series (28): Detailed explanation of the factory model of design patterns

    Deep understanding of JavaScript series (28): Detailed explanation of the factory model of design patterns

    Introduction Similar to the creation mode, when creating an object (considered as a product in the factory), there is no need to specify the specific class of the object to be created. The factory pattern defines an interface for creating objects, and thi
    2025-05-25
  • abbr tag and acronym tag

    abbr tag and acronym tag

    <abbr><acronym>The abbreviation and abbreviation represented by the text in the web page are given the complete name of the abbreviation through the title attribute. The difference between the two is that <acronym>the marks are used to represent acronyms,
    2025-05-25
  • js method to remove all spaces in the input box and prohibit input spaces
  • Web page production example: How to truly center pictures

    Web page production example: How to truly center pictures

    Wulin.com (www.vevb.com) article introduction: Methods to center images vertically. The width and height of images are unknown, and there is no fixed size. Under this premise, the picture is vertically centered in a container with fixed width and height.
    2025-05-25
  • How to upload image preview by js

    How to upload image preview by js

    This article describes the method of uploading image preview by js. Share it for your reference. The specific implementation method is as follows: Copy the code code as follows: function PreviewImage(imgFile){var fileextension=imgFile.value.substrin
    2025-05-25
  • JavaScript basic functions sorting and summary

    JavaScript basic functions sorting and summary

    Here I have compiled and summarized some basic JavaScript functions for you, all of which are relatively common and practical. Organizing it will also help everyone better understand javascript. The code copy is as follows: <script type="text/javascript">
    2025-05-25
  • JS restricts text boxes to enter only numbers and letters

    JS restricts text boxes to enter only numbers and letters

    Restrict only digital copy code codes to enter as follows: // -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    2025-05-25
  • window.open() implements post passing parameters

    window.open() implements post passing parameters

    In actual projects, I often encounter such a requirement, that is, to jump between subsystem pages and open on a new page. The project team I am in uses an SSH framework, so the urls are similar to ****.action, and also have two parameters (system ID and
    2025-05-25
  • Complete example of javascript timer

    Complete example of javascript timer

    This article describes the complete implementation method of javascript timer. Share it for your reference. The specific implementation method is as follows: Copy the code code as follows:
    2025-05-25
  • Asynchronous programming practice of when.js under node.js

    Asynchronous programming practice of when.js under node.js

    Suppose a business scenario: obtain rss and save it in a file through the rss address, and the rss address is saved in a file. Complete the business of this scenario requires completing 3 tasks: 1. Read the rss address from the file. 2. Get rss. 3. Save i
    2025-05-25
  • JS movement basic framework example analysis

    JS movement basic framework example analysis

    This article describes the basic framework of JS movement. Share it for your reference. The specific analysis is as follows: Note here: 1. Turn off the existing timer when starting the movement 2. Separate the motion and stop the copy code code as follows
    2025-05-25
  • Home page picture floating effect sample code

    Home page picture floating effect sample code

    The code copy is as follows:<!--首页图片漂浮开始--><script type="text/javascript" language="javascript"> function addEvent(obj, evtType, func, ca
    2025-05-25
  • How to add a confirmation dialog to the hyperlink

    How to add a confirmation dialog to the hyperlink

    This article example describes how JS adds a confirmation dialog box to a hyperlink. Share it for your reference. The specific implementation method is as follows: Copy the code code as follows:<html><head><title> JS adds a confirmation dialog box to the
    2025-05-25
  • Javascript Perfect Motion Framework (analyzing the code line by line, allowing you to relax the principle of movement)

    Javascript Perfect Motion Framework (analyzing the code line by line, allowing you to relax the principle of movement)

    As soon as you hear this name, you will know that the effects of this framework can basically be achieved online. In fact, the previous motion framework still had limitations, that is, several values ​​cannot be moved together. So how to solve this proble
    2025-05-25