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
  • The solution to the error of setTimeout() recursive call without quotes

    The solution to the error of setTimeout() recursive call without quotes

    I want to implement recursive calls when using setTimeout(). If the first parameter is not quoted, Firefox prompts setTimeout():uselesssetTimeout call (missing quotes around argument) If quoted, Firefox will
    2025-04-04
  • Detailed explanation of js variables, scopes and memory

    Detailed explanation of js variables, scopes and memory

    The basic type values ​​are: undefined, NUll, Boolean, Number and String. These types occupy a fixed size space in memory, and their values ​​are saved in the stack space, which we access by value. (1) Value types: numerical, boolean, null, undefined. (2)
    2025-04-04
  • Use q.js to implement promiseization of API in node.js

    Use q.js to implement promiseization of API in node.js

    Regarding what promise is and what the promise solves, please experience the callback asynchronous encoding method of node, and then move to http://wiki.commonjs.org/wiki/Promises/A to see how it is defined. I won’t go into details here. Here we see how t
    2025-04-04
  • JavaScript and jquey implement the merge operation of multiple arrays

    JavaScript and jquey implement the merge operation of multiple arrays

    1. Native JavaScript implementation var array1 = ["a", "b"];var array2 = ["c", "d"]; I want to merge and become like this: <span style="font-weight:bold">var</span>
    2025-04-04
  • Methods of JavaScript closure function accessing external variables

    Methods of JavaScript closure function accessing external variables

    A closure refers to a function that has permission to access variables in another function scope, but the scope configuration mechanism needs to be paid attention to, that is, a closure can only obtain the last value containing any variables in the functi
    2025-04-04
  • Programming HTML5 Canvas API

    Programming HTML5 Canvas API

    <script type="text/javascript">try{document.createElement("Canvas").getContext("2d");document.getElementById("support").
    2025-04-04
  • html5 Canvas drawing tutorial (3) - The reason for 1 pixel line blurring

    html5 Canvas drawing tutorial (3) - The reason for 1 pixel line blurring

    Continuing with the previous article Canvas line drawing tutorial last time we talked about that canvas sometimes have 1 pixel lines blurred and seem to be wider, as shown in the figure below: Such lines are obviously not what we want. The purpose of this
    2025-04-04
  • html5 Canvas drawing tutorial (7) - quadraticCurveTo method for drawing curves in canvas

    html5 Canvas drawing tutorial (7) - quadraticCurveTo method for drawing curves in canvas

    Let’s continue to talk about the method of drawing curves in canvas. Today I will talk about quadraticCurveTo. To be honest, this method is a bit scary, you can first experience it from the name of the function. By the way, I think it is necessary to shor
    2025-04-04
  • Introduction to Database Storage Application of HTML5 Local Storage

    Introduction to Database Storage Application of HTML5 Local Storage

    In the previous article "HTML5 Local Storage: Web Storage", it briefly introduces how to use localStorage to implement local storage; in fact, in addition to sessionStorage and localStorage, HTML5 also supports local data storage through local d
    2025-04-04
  • HTML5 Language: Apple Opera Mozilla will support it

    HTML5 Language: Apple Opera Mozilla will support it

    Some netizens said that HTML5 is the structural language of the next generation. I thought he was a joke, but I didn't care much about it. Today I suddenly discovered "I don't think XHTML is a realistic option for the masses. HTML5 is it.&quo
    2025-04-04
  • Overloading through arguments parameter in javascript

    Overloading through arguments parameter in javascript

    In many object-oriented high-level languages, there is overloading of methods. And JavaScript does not have the concept of method overloading. But we can use the arguments parameter to disguise as overloading of functions. Before simulation, let's loo
    2025-04-04
  • html5 Drag and drop upload image example demonstration

    html5 Drag and drop upload image example demonstration

    Because the title is an example, I won't explain this time, because I have also pieced together this example. I have referenced about 5 or 6 drag-and-drop upload plug-ins and demos, and then picked out the best ones, and finally became such an example
    2025-04-04
  • Will JavaScript replace AppleScript?

    Will JavaScript replace AppleScript?

    Apple released JavaScript for Automation Release Notes (preview version) on its official website, which attracted widespread attention from the community. The general consensus in discussion is that this is an experimental attempt to replace/supplement Ap
    2025-04-04
  • Summary of native methods for getting styles in JavaScript

    Summary of native methods for getting styles in JavaScript

    ps: It is to get the style, not to set the style. If no style value is set for the element, the default value given by the browser is returned. (Forum compilation) 1. element.style: Only the style value written in the style attribute in the element label
    2025-04-04
  • Thinking and Practice of Front-end Separation Based on NodeJS (IV) Security Problem Solution

    Thinking and Practice of Front-end Separation Based on NodeJS (IV) Security Problem Solution

    Preface In the development model of separation of front-end and back-end, the most obvious change in terms of development roles and functions is: in the past, front-end students who were only responsible for development in the browser environment needed t
    2025-04-04