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
  • N methods to merge arrays in JavaScript

    N methods to merge arrays in JavaScript

    Here is a simple article about some tips on using JavaScript arrays. We will use different methods to combine/merge two JS arrays, as well as discuss the advantages/disadvantages of each method. Let's first consider the following situation: The copy c
    2025-04-05
  • JavaScript implementation finds the longest sequence of consecutive numbers in an array

    JavaScript implementation finds the longest sequence of consecutive numbers in an array

    Original title: Given an unordered sequence of integers, find the longest sequence of consecutive numbers. For example: Given [100, 4, 200, 1, 3, 2], the longest sequence of consecutive numbers is [1, 2, 3, 4]. The solution given by Xiaocai: function maxS
    2025-04-05
  • Javascript gets the lunar date code for the current date

    Javascript gets the lunar date code for the current date

    JavaScript code/*Set the lunar date*/var CalendarData=new Array(100);var madd=new Array(12);var numString="1234567890";var monString="全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新全新
    2025-04-05
  • JS monitor mouse events to control the number of textarea input strings

    JS monitor mouse events to control the number of textarea input strings

    【Html code】<table><tr><td> SMS content:</td><td>
    2025-04-05
  • JavaScript implemented in_array function

    JavaScript implemented in_array function

    In JS, you need to determine whether a value is in an array and is not directly used by functions. For example, in PHP, there is the function in_array(). But we can write a function similar to in_array() to determine whether it is a value in the function.
    2025-04-05
  • Deeply understand some features in Node.js

    Deeply understand some features in Node.js

    Node.js is an emerging backend language designed to help programmers quickly build scalable applications. Node.js has many attractions, and there are countless reports about it. This article will target EventEmitter, Streams, Coding Style, Linting, Coding
    2025-04-05
  • js exchange sorting bubble sorting algorithm (Javascript version)

    js exchange sorting bubble sorting algorithm (Javascript version)

    Compare adjacent elements. If the first one is bigger than the second one, exchange them for the two. Do the same work for each pair of adjacent elements, starting from the first pair to the last pair at the end. At this point, the last element should be
    2025-04-05
  • js get a checkbox separately to see if it is selected

    js get a checkbox separately to see if it is selected

    <script language=javascript> function check(){ var xz=document.getElementById("xz"); alert(xz.checked); } </script> <htm
    2025-04-05
  • Solution to generate null characters when splitting strings

    Solution to generate null characters when splitting strings

    Problem Description Some empty string "" appears when splitting strings using JavaScript's split method, especially when using regular expressions as delimiters. Related Questions Does JavaScript regular expression produce empty string group
    2025-04-05
  • About graphical boundary examples implemented through CSS3 in HTML5

    About graphical boundary examples implemented through CSS3 in HTML5

    CSS3 HTML5 graphical boundary instance, as the name suggests, graphical boundary is the boundary that allows the use of pictures as an object. Below is the relevant content about graphical boundary instances implemented through CSS3 in HTML5. The article
    2025-04-05
  • Use different methods to combine/merge two JS arrays

    Use different methods to combine/merge two JS arrays

    Here is a simple article about some tips on using JavaScript arrays. We will use different methods to combine/merge two JS arrays, as well as discuss the advantages/disadvantages of each method. Let's first consider the following situation: copy the c
    2025-04-05
  • The properties contained in the window.location object

    The properties contained in the window.location object

    hash//The URL (anchor) starting from the pound sign (#) host//The hostname and the port number of the current URL hostname//The hostname of the current URL href//The complete URL pathname//The path part of the current URL port//The port number of the curr
    2025-04-05
  • Rewriting of window.location and determining whether the location has been rewritten

    Rewriting of window.location and determining whether the location has been rewritten

    In IE, window.lcoation can be rewritten without redirection. The specific method is: var location = {}, and then the specific attributes can be rewritten, which will bring certain risks to judging location through js. How to determine whether the location
    2025-04-04
  • JS implements to compare whether two strings divided by specified delimiters are the same

    JS implements to compare whether two strings divided by specified delimiters are the same

    Compare the different elements in two strings (character 1, character 2, delimiter optional) files: diff.js// Example usage/*var str1 = "tie, mao, 55";var str2 = "tie, mao, csdn";var result = dif
    2025-04-04
  • Discussion on the Size of Websites in HTML5 Building Touch Screen Website

    Discussion on the Size of Websites in HTML5 Building Touch Screen Website

    This article is divided into two parts. The first part discusses the feasibility of cross-platform websites, and the second part discusses how viewport is set up to develop cross-platform websites? Relying on the adaptive width and height of the tag, it a
    2025-04-04