摘要: //axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。 // 可以通过向 axios 传递相关配置来创建请求 // axios(config) axios({ // `url` 是用于请求的服务器 URL url: '/user', // `method 阅读全文
posted @ 2020-03-06 22:07 前端之旅 阅读(353) 评论(0) 推荐(0)
摘要: // jquery框架ajax // 语法:jQuery.ajax(options) $.ajax({ // (默认: 当前页地址) 发送请求的地址。 url: 'http://.........', // (默认: "GET") 请求方式 ("POST" 或 "GET"), 默认为 "GET"。 阅读全文
posted @ 2020-03-06 21:29 前端之旅 阅读(390) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link rel="stylesheet" type="text/css" href="https://cdn.bootcs 阅读全文
posted @ 2020-03-06 17:08 前端之旅 阅读(833) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></sc 阅读全文
posted @ 2020-03-06 16:12 前端之旅 阅读(195) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></sc 阅读全文
posted @ 2020-03-06 14:04 前端之旅 阅读(306) 评论(0) 推荐(0)