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项目开发流程








相关推荐
双向3321 小时前
RAG的下一站:检索增强生成如何重塑企业知识中枢?
前端
拖拉斯旋风21 小时前
从零开始:使用 Ollama 在本地部署开源大模型并集成到 React 应用
前端·javascript·ollama
asing1 天前
🤯 为什么我的收银台在鸿蒙系统“第一次返回”死活拦不住?一次差点背锅的排查实录
前端·harmonyos
德育处主任1 天前
『NAS』在群晖部署图片压缩工具-Squoosh
前端·javascript·docker
Hao_Harrision1 天前
50天50个小项目 (React19 + Tailwindcss V4) ✨| ThreeDBackgroundBoxes(3D背景盒子组件)
前端·3d·typescript·react·tailwindcss·vite7
加个鸡腿儿1 天前
经验分享2:SSR 项目中响应式组件的闪动陷阱与修复实践
前端·css·架构
心.c1 天前
如何基于 RAG 技术,搭建一个专属的智能 Agent 平台
开发语言·前端·vue.js
计算机学姐1 天前
基于SpringBoot的校园资源共享系统【个性化推荐算法+数据可视化统计】
java·vue.js·spring boot·后端·mysql·spring·信息可视化
智航GIS1 天前
10.7 pyspider 库入门
开发语言·前端·python
华仔啊1 天前
写 CSS 用 px?这 3 个单位能让页面自动适配屏幕
前端·css