Use Canvas to draw dynamic starry sky

1. Introduction to Canvas Canvas API (canvas) is a new tag in HTML5 for real-time generation of images on web pages, and can manipulate image content, basically it is a bitmap (bitmap) that can be manipulated by JavaScript. The Canvas object represents an HTML canvas element <canvas>. It has no behavior of its own, but defines an API to ...

Posted by dhie on Wed, 25 Jan 2023 11:27:19 +0300

jQuery password verification and in-depth understanding of JSONP [front-end jQuery framework]

jQuery Password Validation The jQuery Password Authentication Plugin extends the jQuery Authentication Plugin and provides two components: Function for evaluating password-related factors: For example, mix of upper and lower case letters, mix of characters (numbers, special characters), length, and similarity to username (optional). User-def ...

Posted by dr_overload on Wed, 21 Sep 2022 21:15:10 +0300

[AJAX Tutorial] Three ways for Jquery to implement AJAX requests

Three ways for Jquery to implement AJAX requests content Three ways for Jquery to implement AJAX requests Introduction Project preparation $.get() method $.post() method $.ajax() method Project demo related articles  [AJAX Tutorial] JS Native AJAX Request Introduction There are many methods of AJAX submission provided in the JQ ...

Posted by figuringout on Tue, 24 May 2022 04:00:18 +0300

Spring boot: single file upload / multiple file upload / multiple file fields upload in the form (spring boot 2.3.2)

1, How to realize the correspondence between the description and the file when there are multiple file fields in the form? 1. Description and document correspondence In the file upload page, if there are multiple file fields and multiple corresponding file descriptions, How do documents and instructions correspond? We can add the same number to ...

Posted by clodius on Mon, 23 May 2022 06:10:09 +0300

Tepi technical team: one-year front-end handwritten Promise

Write Promise from zero In this era of rapid front-end development, if you don't work hard today, you will become garbage tomorrow. Although this is seen on the expression package, I'm sure everyone has seen it. To be honest, this is rough, but this is the case. To get back to business, let's take a look at today's content. Last time we saw th ...

Posted by zytex on Sun, 22 May 2022 08:01:32 +0300

Say goodbye to code redundancy! Teach you how to write if else gracefully

preface:When we write js code, we often encounter complex logic judgment. Usually, you can use if/else or switch to realize multiple conditional judgment, but there will be a problem. With the increase of logic complexity, the if/else/switch in the code will become more and more bloated, and the readability will become worse and worse, so we ca ...

Posted by seanrock on Thu, 19 May 2022 09:17:19 +0300

Jquery study notes

First, the operation of the class1. Add a class: addClass()$("div").click(function(){ $(this).addClass("current") })2. Delete class: removeClass()3. Toggle class: toggleClass()If there is such a class name, add it. If there is no such class name, delete it.2. Get the index number3. Get elements1. Label$("div")$("img")2, class name, id nam ...

Posted by harrisonad on Wed, 18 May 2022 10:29:03 +0300

Introduction to JQuery Basics

What exactly is jquery jQuery's official website jQuery JQuery is a js library. Using jQuery is simpler than using JavaScript. jquery version problem Download address of official website: Download jQuery | jQuery There are many versions of jQuery, which are divided into 1 x 2. x 3. x 1.x and 2 X version jquery is no longer updated. N ...

Posted by Rohlan on Mon, 16 May 2022 23:25:14 +0300

The holes in layui that you stepped on.

Is Xiaobian a full-time front-end developer? It's just that it's becoming more and more difficult for programmers now. They have to learn more front-end frameworks to arm themselves. This is the first time I use layui. The first company uses only layui in the front end, so I have to learn. layui official document address: https://www.layui.co ...

Posted by luddeb on Mon, 16 May 2022 03:23:53 +0300

Getting started with LeftLeft

What is leaflet? Leaflet is a lightweight open source js map component, which is suitable for mobile devices. It has simple usage and superior performance. If you have ever used Gaode or Baidu's map api, I believe you can easily start a simpler leaflet How does leaflet work? leaflet Its working method is different from that of Gaode Baidu. B ...

Posted by niroshan on Sun, 08 May 2022 04:27:34 +0300