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
  • Summary of several common writing methods for js object-oriented

    Summary of several common writing methods for js object-oriented

    //Define the Circle class, owning member variable r, constant PI and member function area() for calculating area 1. Factory method var Circle = function() { var obj = new Object(); obj.PI = 3.14159; o
    2025-07-31
  • Recommended JavaScript several ways to remove duplicate values

    Recommended JavaScript several ways to remove duplicate values

    Array deduplication is a common requirement, and we temporarily consider arrays of the same type to deduplication. The main thing is to clarify the ideas and consider the performance. The following methods are basically available online, and I will just b
    2025-07-31
  • The conflict resolution method of input method and shortcut keys for sending message

    The conflict resolution method of input method and shortcut keys for sending message

    Problem: Press the ENTER key when entering text in Chinese input method; bind keyup event will input the English text in the input method into the text box and directly contact the send button keyboard event: When a key is pressed or released, three keybo
    2025-07-31
  • Detailed explanation of JS multi-layer nesting ideas for obtaining elements

    Detailed explanation of JS multi-layer nesting ideas for obtaining elements

    If a paragraph of html is too nested, it is still quite troublesome to obtain in JS. I have written several sets of solutions, you can refer to them. If you have a good method, share it, let's take a look. HTML:<!DOCTYPE html><html lang="en"><head>
    2025-07-31
  • Strict mode summary of js (share)

    Strict mode summary of js (share)

    Home page, we need to understand the concept of strict mode. Strict mode is a special execution mode. It fixes some language shortcomings, provides stronger error checks, and enhances security. You can perform strict mode on some functions, such as: funct
    2025-07-31
  • JS simulation implementation method overload example

    JS simulation implementation method overload example

    This article describes the overloading of JS simulation implementation method. I will share it with you for your reference. The details are as follows: In JS methods, overloading cannot be achieved like C# methods, but we can implement overloading of js m
    2025-07-31
  • Click on the picture to enlarge the special effects PhotoSwipe.js plug-in to implement

    Click on the picture to enlarge the special effects PhotoSwipe.js plug-in to implement

    PhotoSwipe plug-in can realize full screen zoom in on the mobile phone, and double-click on the image to enlarge the image, etc. PhotoSwipe plug-in official website http://www.photoswipe.com/photoswipe's mobile image zoom in and view, slide to switch
    2025-07-31
  • JS simple time comparison method

    JS simple time comparison method

    This article describes the simple method of time comparison of JS. Share it for your reference, the details are as follows: //Time comparison (yyyy-MM-dd) function compareDate(startDate, endDate) { var arrStart = startDat
    2025-07-31
  • Deep understanding of Ajax in JavaScript

    Deep understanding of Ajax in JavaScript

    Ajax is not a new programming language, but a new approach that uses existing standards. AJAX can exchange data with the server without reloading the entire page. This asynchronous interaction method allows users to obtain new data without having to refre
    2025-07-31
  • A brief analysis of JS dynamically creating elements [two methods]

    A brief analysis of JS dynamically creating elements [two methods]

    Preface: There are two ways to create elements 1) Splice the elements you need to create in the form of a string; find the parent element and directly assign the innerHTML of the parent element. 2) Use some functions provided by Document and Element objec
    2025-07-31
  • A brief discussion on some basic algorithm problems of characters and arrays in js

    A brief discussion on some basic algorithm problems of characters and arrays in js

    I have been trying FCC questions recently, just like upgrading to fight monsters, I have passed one level at a time, which is quite attractive to me. I took the time to do the Basic Algorithm Scritping part today. According to some tips, it is relatively
    2025-07-31
  • BootStrap table plug-in adaptive fixed table header (super useful)

    BootStrap table plug-in adaptive fixed table header (super useful)

    First of all, it is a simple page form. You can create html tables in the usual way of drawing tables, and then control special styles and other operations through js (the advantage is that the table is more intuitive, convenient to adjust table styles, e
    2025-07-31
  • Easy way to read and write cookies with js (recommended)

    Easy way to read and write cookies with js (recommended)

    When the data security requirements are not very high, we can directly use js to read and write cookies, which is more convenient. The code is as follows: /* Function: Save cookies function parameters: name, cookie name; value, value*/ function SetCookie(
    2025-07-31
  • Easily master JavaScript Enjoyment Mode

    Easily master JavaScript Enjoyment Mode

    In JavaScript, browsers, especially browsers on mobile devices allocate very limited memory, and how to save memory has become a very meaningful thing. An effective way to save memory is to reduce the number of objects. Flyweight, running sharing technolo
    2025-07-31
  • Bootstrap creates a system template for folding menu on the left (1)

    Bootstrap creates a system template for folding menu on the left (1)

    1. Preface Recently, I need to build a backend management system. I plan to use bootstrap to create a good-looking backend template. I think the css and js are a bit heavy. So I plan to rely entirely on bootstrap to build my own template. Start with the f
    2025-07-31