Ajax learning notes, native Ajax, jQuery Ajax, cross domain problems
Ajax learning notes
AJAX is a developer's dream because you can:
Update web pages without refreshing pagesRequest data from the server after the page is loadedReceive data from the server after the page is loadedSend data to the server in the background
1. Native js implements ajax
<script>
var box = $(".box");
$("button").cli ...
Posted by jeny on Sun, 31 Oct 2021 18:57:13 -0700
Javaweb8 = = realize the login and registration function of front and back-end separation
The back end is as written in the previous two articles.
The front end picked up a front-end page from the Internet and used the JavaScript library jQuery to simplify the operation of DOM and BOM. I want to use ajax technology to initiate HTTP requests and ...
Posted by geecu on Tue, 26 Oct 2021 19:42:38 -0700
flex flexible layout
display: flex; // Used to turn on elastic layout
Before learning flex flexible layout, we need to understand the following concepts:
Elastic containerElastic projectprincipal axisCross axis
catalogue
1. Elastic container
2. Flexible items
3. Spindle
4. Cross axis
5. Elastic setting
6. Communication
1. Elastic container
Def ...
Posted by goltoof on Tue, 12 Oct 2021 21:05:41 -0700
Common jQuery API s and jQuery events
jQuery basic overview, please stamp: Overview and basic usage of jQuery
1, jQuery common API s
1. jQuery selector
$('selector')
(1) Basic selector:
ID selector: $("#id");Select all:*Class:Labels: divUnion: div, spanIntersection: li.current
(2) Level selector:
Offspring: $("UL > Li");Descendants: $("ul li" ...
Posted by Carline on Mon, 11 Oct 2021 15:28:15 -0700
jQuery gets and sets the width and height of an element
In this section, we will learn how to get or set the width and height of elements through the methods provided in jQuery.
The methods used to obtain and set the width and height in jQuery are as follows:
methoddescribewidth()Sets or returns the width of the elementheight()Sets or returns the height of the elementinnerWidth()Returns the width ...
Posted by j4ymf on Sun, 10 Oct 2021 06:54:28 -0700
Knowledge system of Web front end development engineer_ 35_JavaScript jQuery (final)
1, Ajax
$.ajax({
url:"Server interface address",
type:"get or post", //Request type
data:{ //If there are no parameters, they can be omitted
Parameter name: Parameter value,
... : ...
},
dataType:"json",
//Automatically call JSON.parse() to convert the json string returned by the server into an array or object directly ...
Posted by Smeep on Fri, 08 Oct 2021 17:13:12 -0700
Common jQuery API s: jQuery selector, jQuery style operation, jQuery effect, jQuery property operation, text property value, jQuery element operation, jQuery size, position operation
1. jQuery selector
1.1 jQuery Basic Selector
Native JS fetches elements in a variety of ways, is complex, and has inconsistent compatibility, so jQuery encapsulates us to achieve a uniform standard for fetching elements.
$("selector") // Inside selector Write CSS selector directly, but quote
NameusagedescribeSelect all selectors$("*")Match ...
Posted by scottlowe on Fri, 08 Oct 2021 10:03:27 -0700
Mobile page adaptive layout -- rem
rem layout and introduce js code into the page.
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
if (clientWidth > 1024) {
docEl.s ...
Posted by eyaly on Sun, 26 Sep 2021 20:23:39 -0700
JQuery entry level - Basic
1. Simple introduction to JQuery
1.1 introduction to JQuery
jQuery is a JavaScript library.The so-called library is a JS file, which encapsulates many predefined functions, such as obtaining elements, performing hiding, moving, etc. The purpose is to call directly when in use without repeated definition, which can greatly simplify JavaScr ...
Posted by pacmon on Wed, 22 Sep 2021 21:51:42 -0700
jQuery introduction to proficient learning tutorial, collect my article is enough
Hello, I'm hottie. I'll organize jQuery learning tutorials for you today.
catalogue
1, Introduction to jQuery
2, Usage of jQuery
3, jQuery selector
4, Selection set filtering
5, Selection set transfer
6, Get and set element content
7, Get and set element properties
8, jQuery event
9, Event agent
10, JavaScript object
11, json ...
Posted by blmg911 on Wed, 22 Sep 2021 01:02:59 -0700