摘要:
方式一:json请求 方式二:form表单 <template> <div>{{ msg }}</div></template><script> export default { data:() =>({ msg:'', }), created () { const axios = require( 阅读全文
posted @ 2023-05-19 17:35
快乐的汤圆酱
阅读(257)
评论(0)
推荐(0)
摘要:
一、定义:是一个基于Promise,可以用于浏览器和node.js的HTTP客户端 二、基本用法 1、发起请求:设置请求方法 2、传递参数方式: (1)通过传统的url以?的形式传递参数 (2)通过params形式传递参数 3、接收响应值 组建: <template> <div>{{ msg }}< 阅读全文
posted @ 2023-05-19 17:06
快乐的汤圆酱
阅读(55)
评论(0)
推荐(0)
摘要:
一、声明式导航:通过点击链接的方式实现的导航vue组件中的<router-link to="/user"></routeer-link>二、编程式导航:调用JavaScript的api方法实现导航1、this. $router.push(); - (1)字符串(路径参数) (2)2、this.$ro 阅读全文
posted @ 2023-05-19 16:10
快乐的汤圆酱
阅读(145)
评论(0)
推荐(0)
摘要:
一、实现功能 阅读全文
posted @ 2023-05-19 11:28
快乐的汤圆酱
阅读(24)
评论(0)
推荐(0)
摘要:
1、总体结构 2、路由说明 阅读全文
posted @ 2023-05-19 11:00
快乐的汤圆酱
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号