随笔分类 -  前端零散点

摘要:代码 <el-upload ref="schoolLogo" class="avatar-uploader" action="https://jsonplaceholder.typicode.com/posts/" :show-file-list="false" :on-success="handl 阅读全文 »
posted @ 2023-12-19 17:34 GTK 阅读(153) 评论(0) 推荐(0) 编辑
摘要:一、Ajax的基本用法 先写一个基本的结构 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name= 阅读全文 »
posted @ 2023-01-09 13:31 GTK 阅读(20) 评论(0) 推荐(0) 编辑
摘要:一、npm包管理文件 安装命令:npm init -y 二、创建webpack.config.js配置文件 entry //入口文件 moudle //loader打包css、less、图片资源等等 plugins //插件打包html output //输出 mode //模式 developme 阅读全文 »
posted @ 2021-08-16 12:39 GTK 阅读(256) 评论(0) 推荐(0) 编辑
摘要:Vue组件化之语法糖 一、全局组件之语法糖 以下模板 <template id="cpn"> <div> <p>你与Vue.js之组件的邂逅!</p> </div> </template> 以下是全局注册 Vue.component('cpn', { template: '#cpn' }) 二、局部 阅读全文 »
posted @ 2021-05-07 11:50 GTK 阅读(235) 评论(0) 推荐(0) 编辑
摘要:一、启动flex布局 在属性中加入 display:flex; 二、确定flex布局的主轴 flex布局有一条主轴和一条交叉轴,启用此布局默认是水平的主轴main axis。 使用flex-direction: ;属性来确定主轴的方向,该属性有以下四个值 row 水平主轴,起点在左端 || row- 阅读全文 »
posted @ 2021-03-26 22:09 GTK 阅读(220) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示