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