Day03-Ajax,前后端分离开发,前端工程化,Vue组件库Element,Vue路由,打包部署



1. AXios



html 复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
    <input type="button" value="get" onclick="get()"><br>
    <input type="button" value="post" onclick="post()"><br>
</body>
<script>
    function get(){
        axios({
            methods: 
            "get",
            url:"https://unpkg.com/axios/dist/axios.min.js"
        }).then(result=>{
            console.log(result.data)
        })
    }    
    function post(){
        axios({
            methods: 
            "post",
            url:"https://unpkg.com/axios/dist/axios.min.js",
            data:"id=1"
        }).then(result=>{
            console.log(result.data)
        })
    }
</script>
</html>



3. 前端工程化

环境准备

nodejs安装过程的

vue项目简介

vue项目开发流程








相关推荐
a11177618 小时前
医院挂号预约系统(开源 Fastapi+vue2)
前端·vue.js·python·html5·fastapi
0思必得018 小时前
[Web自动化] Selenium处理iframe和frame
前端·爬虫·python·selenium·自动化·web自动化
计算机毕设VX:Fegn089519 小时前
计算机毕业设计|基于springboot + vue蛋糕店管理系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计
行走的陀螺仪20 小时前
uni-app + Vue3编辑页/新增页面给列表页传参
前端·vue.js·uni-app
We་ct21 小时前
LeetCode 205. 同构字符串:解题思路+代码优化全解析
前端·算法·leetcode·typescript
2301_812731411 天前
CSS3笔记
前端·笔记·css3
ziblog1 天前
CSS3白云飘动动画特效
前端·css·css3
越努力越幸运5081 天前
CSS3学习之网格布局grid
前端·学习·css3
半斤鸡胗1 天前
css3基础
前端·css
ziblog1 天前
CSS3创意精美页面过渡动画效果
前端·css·css3