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 implements the timely verification function of form and user information is immediately verified

    JS implements the timely verification function of form and user information is immediately verified

    Question: How to verify the form immediately after input, instead of submitting it, so inconvenient (the search online is either ambiguous or incomplete...) Method: In view of this, Xiaoke, Shuishanqi, complete the code, and add Xiaoke's personal unde
    2025-08-05
  • The number of visits to the js statistics page implementation code

    The number of visits to the js statistics page implementation code

    Script description: Add the following code<body> The code copying in the area is as follows: <SCRIPT language="JavaScript"><!-- function getCookieVal(offset) {var endstr=document.c
    2025-08-05
  • Node.js Koa framework and MySQL operation guide

    Node.js Koa framework and MySQL operation guide

    Koa, created by the original Express team, is committed to becoming a smaller, stronger and more expressive web framework. Using koa to write web applications, by combining different generators, you can eliminate duplicate and cumbersome callback function
    2025-08-05
  • How to breakpoint debug asynchronous loading of JS in chrome browser

    How to breakpoint debug asynchronous loading of JS in chrome browser

    Introduction In our daily development, we often use the powerful chrome console Sources to debug code breakpoints, but we can't find it in Sources by loading JS asynchronously through $.getScript and other asynchronously. So how to debug breakpoints?
    2025-08-05
  • Understand event bubbles and event capture

    Understand event bubbles and event capture

    The order of events is assumed to be nested in one element and both have an onClick event handler. If the user clicks on element 2, the click events of element 1 and element 2 are triggered. But which event is triggered first? Which event handler function
    2025-08-05
  • Vue.js must learn every day computed and $watch

    Vue.js must learn every day computed and $watch

    Bind expressions in templates are very convenient, but they are actually only used for simple operations. The template is to describe the structure of the view. Putting too much logic into a template can make the template too heavy and difficult to mainta
    2025-08-05
  • Summary of methods to prevent users from submitting forms repeatedly

    Summary of methods to prevent users from submitting forms repeatedly

    Repeated form submission is the most common problem in multi-user web applications and causes a lot of trouble. There are many application scenarios that encounter repeated submission problems, such as: clicking the Submit button twice. Click the Refresh
    2025-08-05
  • A comprehensive analysis of single-body pattern in JavaScript design pattern

    A comprehensive analysis of single-body pattern in JavaScript design pattern

    A monolith is an object used to divide a namespace and organize some related attributes and methods. If she can be instantiated, she can only be instantiated once (she can only marry once, not second marriage). The monolithic pattern is one of the most ba
    2025-08-05
  • AngularJS execution process detailed introduction

    AngularJS execution process detailed introduction

    1. Everyone should know that when the browser loads an HTML page, it will first parse the HMTL page into a DOM tree, and then load each element node in the DOM tree one by one. We can treat AngularJS as a js library similar to jQuery, we use<script>标签引入到H
    2025-08-05
  • Open URL in a new tab page based on JavaScript implementation

    Open URL in a new tab page based on JavaScript implementation

    When window.open(url,"_blank"), is invalid, the following method can be used. function openwin(url) {var a = document.createElement("a");a.setAttribute("href",
    2025-08-05
  • A brief analysis of native Promise in Javascript ES6

    A brief analysis of native Promise in Javascript ES6

    Preface A Promise object can be understood as an operation to be performed (often used for asynchronous operations). After using the Promise object, the code can be organized in a chain call method to make the code more intuitive. Moreover, because the me
    2025-08-05
  • Example code to implement image display waterfall flow effect using JS

    Example code to implement image display waterfall flow effect using JS

    I wonder if you have noticed that ordinary picture display websites will use the waterfall flow effect. The so-called waterfall flow means that the pictures in the website will not be cached all at once, but will not be cached when you scroll to a certain
    2025-08-05
  • Using HTML5 to control background music switches

    Using HTML5 to control background music switches

    Sometimes we add background music to the page, allowing users to turn on and off the background music by themselves, especially multimedia pages made based on mobile html5. HTML5's audio tag can obtain the audio playback status, and the background mus
    2025-08-05
  • Comparative analysis of arrays under AngularJS

    Comparative analysis of arrays under AngularJS

    Javascript cannot directly use == or == to determine whether two arrays are equal, whether they are equal or inconsistent, and the following two lines of JS code will return false<script type="text/javascript"> alert([]==[]); ale
    2025-08-05
  • JS implements a simple object-oriented color selector instance

    JS implements a simple object-oriented color selector instance

    This article describes the implementation of a simple object-oriented color selector by JS. Share it for your reference, as follows:
    2025-08-05