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
  • JS cross-domain solution using CORS to implement cross-domain

    JS cross-domain solution using CORS to implement cross-domain

    Introduction Cross-domain is a question I often ask in daily interviews. This term appears frequently in the front-end world. The main reason is that it is due to security restrictions (same-original strategy, that is, JavaScript or cookies can only acces
    2025-07-21
  • Literal explanation of JavaScript objects

    Literal explanation of JavaScript objects

    In programming languages, literals are notation methods that represent values. For example, "Hello, World!" represents a string literal in many languages, and JavaScript is no exception. The following are examples of JavaScript literals, such as
    2025-07-21
  • Simple learning experience of solving multi-layer asynchronous calls using Promise

    Simple learning experience of solving multi-layer asynchronous calls using Promise

    Preface: The first time I came into contact with Promise was when Microsoft released the Windows 8 operating system in 2012 and studied using html5 to write Metro applications with a curious attitude. At that time, the asynchronous interfaces in the WinJS
    2025-07-21
  • JS control example code for pop-up floating window (list screen)

    JS control example code for pop-up floating window (list screen)

    In web project development, we often encounter users who need to view the detailed information of a certain record in the list screen. If you use the method of migrating the screen, the speed will be slower and the user experience will not be very good. I
    2025-07-21
  • AngularJS unsupported solution in IE8

    AngularJS unsupported solution in IE8

    AngularJS generally does not choose IE8 support, because many features are very poor in IE8 and the performance is not good. However, due to the needs of the project, some of the customers' machines are XP and can only install IE8. So in order to solv
    2025-07-21
  • Must-read tips for JavaScript (must-read)

    Must-read tips for JavaScript (must-read)

    In this article, I will share with you some tips about JavaScript. These tips may help you solve some problems in your actual work. Use the !! operator to convert a boolean value sometimes we need to check whether a variable exists or check whether the va
    2025-07-21
  • Summary of Active Control Problem (with solutions)

    Summary of Active Control Problem (with solutions)

    ActiveX controls are websites that allow websites to provide content such as videos. When you browse the web, they allow you to use toolbars, stock codes, videos, and other content. However, these programs may sometimes have problems or provide you with u
    2025-07-21
  • Some comprehensive understanding of Js OOP programming creation objects

    Some comprehensive understanding of Js OOP programming creation objects

    Object-oriented is a method of understanding and abstracting the real world, and is a product of computer programming technology development to a certain stage. The meaning of an object The object can be a car, a person, an animal, a text, a form, or anyt
    2025-07-21
  • Detailed explanation of several encoding methods of javascript url

    Detailed explanation of several encoding methods of javascript url

    1. escape() cannot be used directly for URL encoding. Its real function is to return a character's Unicode-encoded value. For example, the return result of "Spring Festival" is %u6625%u8282. Escape() is incorrect "+" encoding, and
    2025-07-21
  • js intercept or replace the number implementation method in a string

    js intercept or replace the number implementation method in a string

    When operating tables by js, we often need to get or modify the subscript in name, such as: name="cust[1]/custName"; replace: name.replace(/[/d]+/,num); //num gets the numeric variable you need to replace: name.match(/[
    2025-07-21
  • JS code about seamless scrolling in web pages

    JS code about seamless scrolling in web pages

    Any web page you open will basically see seamless scrolling or carousel images. For example, if you observe the homepage of Taobao and 360 official website, you can find that the pictures can be switched back and forth in a loop. So how do you do it? Ther
    2025-07-21
  • Ext JS framework program code sharing that prevents keyboard from triggering fallback or refreshing pages

    Ext JS framework program code sharing that prevents keyboard from triggering fallback or refreshing pages

    In Extjs development, we need to block some keyboard keys to avoid problems such as missing input information by users accidentally pressing these shortcut keys during the keyboard operation. Ext.onReady(function(){ Ext.WindowMgr.zseed = 10
    2025-07-21
  • Definition and calling method recommendation of JS function

    Definition and calling method recommendation of JS function

    Four methods of JS function call: method calling mode, function calling mode, constructor calling mode, apply, call calling mode 1. Method calling mode: first define an object, then define a method in the object's properties, and execute the method th
    2025-07-21
  • Summary of common methods of JavaScript Math objects

    Summary of common methods of JavaScript Math objects

    Math.abs(x): The absolute value of the return number Math.ceil(x): Round up Math.floor(x): Round down Math.max(x,y): Maximum value Math.min(x,y): Min Math.random(x): Random number Math.round(x)
    2025-07-21
  • Detailed explanation of one of the JavaScript browser objects Window object

    Detailed explanation of one of the JavaScript browser objects Window object

    JavaScript provides a set of objects with window as the core, realizing access control of browser windows. JavaScript defines 6 important objects: window object represents the window opened in the browser; document object represents the document object th
    2025-07-21