Vue
y向日葵
这个作者很懒,什么都没留下…
展开
-
axios请求使用application/x-www-form-urlencoded使用key: value传参方式
‘Content-Type’: ‘application/x-www-form-urlencoded’ 请求1. 使用{key:value}:方式this.$axios.post('url/XXXX', JSON.stringify(params), { headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' }}) .then(res => { console.log(re原创 2021-08-19 09:32:29 · 845 阅读 · 0 评论 -
Vue路由
Vue基础学习通过vue关键字创建一个实例 <div id="app"> <h5>{{txt}}</h5> <input type="text" v-model="txt"> </div> var app = new Vue({ el: '#app', // 表示实例的最用范围 ...原创 2019-03-23 20:30:26 · 154 阅读 · 0 评论