Ajax Principle & Basic Case

An Analysis of the Basic Principles of Ajax Basic concepts Asynchronous Javascript and XML. A technique for creating fast dynamic Web pages with minimal exchange with the server to update the pages Common Cases Search page displays search results without refreshing Registration page prompts for availability of items Tmall Sho ...

Added by bobdabuilder on Mon, 20 Jul 2020 19:16:36 +0300

use Chart.js Draw a gradient curve, show the coordinates of a point, step through a pit

The requirement is that you have a series of data that you write to death in the JS and use these data points to draw a line graph.The interface is then called to get the data for a point (only the transverse coordinates), which is represented on the line graph and displayed as the point data (tooltip). First look at t ...

Added by binarymonkey on Thu, 09 Jul 2020 17:41:57 +0300

Using javaScript to implement a queue

1. A queue is a group of ordered items following the first in first out (FIFO) principle. Elements are added at the end of the queue and removed from the top. The newly added elements must be at the end of the queue. Common examples in life, such as queuing. 2. Create a queue class class Queue{ constructor(){ this.count = 0;//Numb ...

Added by davidwhiteuk on Tue, 30 Jun 2020 08:18:42 +0300

The Ultimate Perfect Shopping Cart System Reveals--MVC Design Mode

Simple Shopping System People often go online to get enough, so the so-called shopping cart on the Internet should not be unfamiliar, so today we use the MVC design mode of javaweb to implement a case of online shopping system. The results are as follows:   A brief introduction to the three-tier architecture 1. Development Steps ...

Added by NogDog on Fri, 26 Jun 2020 04:41:02 +0300

TypeScript self study - Chapter 4: classes

class Let's see the use of classes class Greeter { greeting: string; constructor(message: string) { this.greeting = message; } greet() { return "Hello, " + this.greeting; } } let greeter = new Greeter("world"); There are three parts: a property called greeting, a constructor, and a greet method. inherit class Animal { ...

Added by ronald29x on Thu, 25 Jun 2020 15:20:30 +0300

canvas tags for HTML5

canvas tags for HTML5 preface text What is canvas Basic use of canvas canvas element Rendering context Test support canvas drawing concept Coordinate space Draw rectangle Draw path Draw arc arc example 1 arc example 2 arc example 3 Add canvas style fillStyle strokeStyle Draw text Add text sty ...

Added by cresler on Wed, 24 Jun 2020 09:22:11 +0300

Don't worry about picture processing, give you ten helpers

In this paper, Apollo will introduce ten "little helpers" for your little buddies, each with unique skills such as blurring, compressing, cropping, rotating, synthesizing, and comparing.I'm sure you'll be able to cope with most picture processing scenarios easily once you know them. But before ...

Added by tr0gd0rr on Tue, 23 Jun 2020 04:29:55 +0300

Touch and take you to understand Vue's responsive principle

preface As the core of Vue, responsive principle uses data hijacking to realize data-driven view. In the interview is often examined knowledge points, but also interview bonus items. This paper will analyze the workflow of response principle step by step, mainly in the following structure: Analyze key members and understand them to help unders ...

Added by chanchelkumar on Mon, 22 Jun 2020 06:07:29 +0300

Fine javascript Design Mode (strategy mode)

I try to explain all aspects of the design pattern in the least amount of text and space.Full Text Connection Understanding Strategic Patterns Split the algorithm from the part calling it Let me give you an example: You want to travel to Sanya in many ways: by plane, by train, by car.These methods can all reach the destination, but the process ...

Added by ihcra on Mon, 22 Jun 2020 03:06:10 +0300

Take you 10 days to be proficient in the vue framework and realize data request through axios

4. Data request through axios vue.js ajax is not available by default. So when using vue, we usually use axios plug-in to realize the data interaction between ajax and back-end server. Note that axios are essentially ajax encapsulation of javascript, so they are limited by the same origin policy. plug ...

Added by akelavlk on Thu, 18 Jun 2020 10:59:19 +0300