jquery ajax submits data to the backend

Hello everyone, today brother Tiezhu brings you a piece of jquery ajax to submit data to the back-end teaching. The front-end data submitted by students who are new to Java Web are basically submitted in form form form, which is not very fun for me anyway. But JavaScript ajax writes a lot, looks headache. jquery ajax is easy to understand and l ...

Posted by johnsworld on Thu, 28 Nov 2019 06:51:53 -0800

Ajax asynchronously validates the form information (information verification and duplicate judgment), and then the submit button can be clicked

The requirement is that users submit information asynchronously when registering or updating, and perform key information weight judgment and form verification The above figure is the form to be submitted. Here, only the ID number is used for example. <div class="input-group"> <span class="input-group-addon">ID ...

Posted by hash1 on Wed, 27 Nov 2019 09:20:48 -0800

jQuery source parsing style operation modules scrollLeft and scrollTop

scrollLeft and scrollTop are used to get / set scroll bars, as follows: scrollLeft(val); read or set the horizontal scroll bar distance of the entire page scrollTop(val); read or set the vertical scroll bar distance of the entire page If no value of val is passed in, the scroll bar distance will be obtained. If val is set, the scroll bar dist ...

Posted by mark123 on Mon, 25 Nov 2019 07:07:24 -0800

Simple rights management php

Forwarded from https://www.cnblogs.com/shenzikun1314/p/6604867.html#4262295   First, the basic theory to understand is whether the relationship between users, roles and privileges is one-to-many or many-to-many.From this, the table is created.   A user can belong to multiple roles, such as Dunchao.He is Sun Li's husband, his child's father, o ...

Posted by billborric on Thu, 21 Nov 2019 19:49:56 -0800

PHP extension can also develop WebSocket online chat communication system

To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension To install think swoole, execute the composer command in the project root directory of tp5: composer require topthink/think-swoole If you don't say much, go straight to the code: To create a WebSocke ...

Posted by 10legit10quit on Wed, 20 Nov 2019 13:09:44 -0800

Implementation of WebSocket online chat communication system based on PHP framework

To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension To install think swoole, execute the composer command in the project root directory of tp5: composer require topthink/think-swoole If you don't say much, go straight to the code: To create a WebSocke ...

Posted by VK4KBG on Wed, 20 Nov 2019 12:00:07 -0800

HTML and CSS

HTML fill in blanks with placeholder text <h1>Hello World</h1> <h1>Hello World</h1> <h2>CatPhotoApp</h2> <h1>Hello World</h1> <h2>Hello html</h2> <p>Hello Paragraph</p> HTML change color of text < H2 style = "color: Red" > HTML program ...

Posted by doozerdc on Wed, 20 Nov 2019 09:19:49 -0800

js full page screenshot

I. Reference Library Download address of html2canvas.js and canvas2image.js: html2canvas.js:       http://html2canvas.hertzen.com/dist/html2canvas.min.js canvas2image.js:    https://github.com/SuperAL/canvas2image/blob/master/canvas2image.js Two, use The jQ library needs to be introduced. If the browser is not introduced, you can import it y ...

Posted by ahzulfi on Wed, 20 Nov 2019 06:27:08 -0800

Source code analysis of Vue view update patch process

In this article Deep source learning Vue responsive principle This article explains how Vue informs the data that depends on it to update when the data changes. The point of this article is: the view knows the change of the dependent data, but how to update the view. Vnode Tree There is a DOM tree corresponding to it in real HTML, and a similar ...

Posted by Averice on Tue, 19 Nov 2019 05:24:02 -0800

JavaScript manipulating JSON objects

JSON(JavaScript Object Notation) is a lightweight data exchange format, which is completely independent of the language text format. It is an ideal data exchange format. At the same time, JSON is a native JavaScript format, which means that you don't need any special API or toolkit to process JSON data in JavaScript. 1. Declare ...

Posted by NiallThistle on Mon, 18 Nov 2019 10:50:23 -0800