摘要:
============index.html ============ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge 阅读全文
摘要:
index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" 阅读全文
摘要:
jsonp是一种跨域通信的手段,它的原理其实很简单: 首先是利用script标签的src属性来实现跨域。 通过将前端方法作为参数传递到服务器端,然后由服务器端注入参数之后再返回,实现服务器端向客户端通信。 由于使用script标签的src属性,因此只支持get方法 演变方法1 ==========i 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
摘要:
1、axios 发送 ajax get 请求 (第一个参数 usr,第二个其它) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE 阅读全文
摘要:
1、发送 get 请求 $.get ( url, [data], [callback], [type] ) url::请求的URL地址; data:请求的携带参数; callback:载入成功时加调函数 type:设置返加内容格式,( xml , html , script , json , tex 阅读全文
摘要:
服务端响应 //引用 express const { request, response, json } = require('express'); const express = require('express'); //创建应用对象 const app = express(); //创建路由规 阅读全文
摘要:
服务端server.js 设置延时时间 //引用 express const { request, response, json } = require('express'); const express = require('express'); //创建应用对象 const app = expr 阅读全文