前端
jianfei.
这个作者很懒,什么都没留下…
展开
-
jsp <c:forEach> 判断第一条 或 最后一条记录
first:用来表明当前这轮迭代是否为第一次迭代,该属性为boolean类型。last:用来表明当前这轮迭代是否为最后一次迭代,该属性为boolean类型。<c:forEach items="${list}" var="list" varStatus="status"><c:if test="${status.first}">第一条记录</c:if> <c:if test="${status.last}">最后一条记录</c:if&g原创 2021-08-19 16:24:17 · 1006 阅读 · 0 评论 -
vue项目中svg-icon图标使用
- 项目结构引用步骤1,在components文件夹下新建SvgIcon组件SvgIcon下创建index.vueindex.vue内容如下<template> <svg :class="svgClass" aria-hidden="true" v-on="$listeners"> <use :xlink:href="iconName" /> </svg></template><script>原创 2021-08-12 16:37:25 · 1856 阅读 · 0 评论 -
vue添加背景及页面留白处理方法
1,顶部留白情况处理方式:在APP.vue文件中的style中#app{}样式中去掉margin-top: 60px;即可效果图如图所示发现页面顶部和左侧还是有小的留白这是只需要在APP.vue文件中的style中添加*{ padding: 0; margin: 0; }即可...原创 2021-08-12 11:53:17 · 1834 阅读 · 0 评论 -
VUE项目引入ElementUI
ElementUI官网:https://element.eleme.cn/#/zh-CN一,vue引入ElementUI1,下载ElementUI的依赖npm i element-ui -S2,在src下的main.js中指定当前项目中使用ElementUIimport ElementUI from 'element-ui'import 'element-ui/lib/theme-chalk/index.css'3,将ElementUI注册到vue实例上Vue.use(Elem.原创 2021-08-09 15:54:58 · 400 阅读 · 0 评论