Ajax notes sorting
1. Issue asynchronous requests for get and post of jQuery? get:
Syntax: $. get(1. "Request path", 2. Anonymous function for processing response data, in which the formal parameter is the value returned by the server to the client, 3. Type of response data (text by default)) post:
$. post("1. Request path", "2. Request ...
Posted by christo16 on Sat, 20 Nov 2021 15:33:52 -0800
Getting started with JavaEE and Mybatis
1: Introductory case
1: First create a new module = = > set the Java version to 8 = = > find the following components, check and Finish
2: Write the structure as shown in the following figure
controller layer UserController class package com.mybatis.mybatis.controller;
import com.mybatis.mybatis.entity.User;
import com.mybatis ...
Posted by fansa on Tue, 16 Nov 2021 03:49:22 -0800
Registration of Spa project development
catalogue
1: The spa project completes the login and registration layout
1. Install development module
2. Introduce the main.js configuration (leading css and then JS)
Tests: adding elementUI Component view effect
3. Login registration layout
1,src/App.vue
2,src/router/index.js
3. src/views/Login.vue (log ...
Posted by gavinr98 on Thu, 11 Nov 2021 15:16:27 -0800
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
Ajax Learning Notes
get request
get.html
Four steps
<!DOCTYPE html>
<body>
<button onclick="getReq()">get request</button>
<script>
function getReq(){
//1. Create an XMLHttpRequest object
let xhr = new XMLHttpRequest();
//2. Call the open() method to open the connecti ...
Posted by IronWarrior on Mon, 18 Oct 2021 09:53:23 -0700
Cookie and Session
Scope of four domain objects in Java Web
Application (application domain) After the deployment of the whole project, there will only be one application domain object. All clients access the same application domain object, and all dynamic resources of the project also share the same application domain object
Request (request domain) Each reque ...
Posted by monkeytooth on Sat, 16 Oct 2021 20:05:02 -0700
HTML5 load new page insensibly (next page + non ajax+history.pushState)
1, Modify the url without refreshing the page
Case 1: setting anchor characteristics (taking the code of the tab in bootstrap as an example)
Use the anchor mode to switch. When the page is refreshed, it will also be located to the specified page. However, if the page content is too long and the scroll bar appears, the anchor will be locate ...
Posted by golfinggod on Fri, 15 Oct 2021 22:26:46 -0700
Request method of Ajax encapsulation based on promise
1.Ajax requests obtain more information from the server asynchronously, which means that users can update the latest data of the server without refreshing the web page as long as they trigger an event. 2. Using Ajax, you must call the open() method, which accepts three parameters: the type of request to send (get, post), the URL of the request, ...
Posted by Devil_Banner on Wed, 13 Oct 2021 05:35:06 -0700
java crawl learning-01
1, Climbing tool
httpclient Simulate the browser request for capturing html pages. After capturing, you can obtain data in combination with regular.fastjson Used to parse json. For some ajax requests, httpclient cannot grab the html generated dynamically by js later. Therefore, we need to obtain the ajax request url, then obtain the json s ...
Posted by Soogn on Mon, 11 Oct 2021 11:33:17 -0700
8 super detailed Web cross domain solutions
1, What is cross domain
When a page or script under the domain name a.qq.com attempts to request resources under the domain name b.qq.com, it is a typical cross domain behavior. The definition of cross domain can be divided into two types: broad cross domain and narrow cross domain.
(1) Generalized cross domain
Generalized cross doma ...
Posted by inosent1 on Sun, 10 Oct 2021 07:33:18 -0700