- 博客(12)
- 收藏
- 关注
原创 自定义滚动条样式
/*---滚动条大小--*/ ::-webkit-scrollbar { width: 6px; height: 0px; }//滑块::-webkit-scrollbar-thumb { background-color: rgba(36,158,246,.3); height: 5...
2018-12-25 15:16:02
182
原创 video标签
<video id="video" style="width: 100%;height: 100%;object-fit:fill;position: absolute;top: 0;left: 0;" muted autoplay loop src="./Images/123.mp4"></video>
2018-12-25 15:12:09
207
1
原创 上传指定的文件格式
excel:<input type="file" id="avatar" name="avatar" accept=".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">word:<input type...
2018-11-21 15:56:20
424
原创 Vue中excel导入导出
npm安装npm install -S file-saver xlsx(这里其实安装了2个依赖)npm install -D script-loader在src下创建一个文件夹,包含两个文件:Blob.js,Export2Excel.js下载地址:https://gitee.com/BenDanXianSheng/excel_relyon.git然后再main.js中导入这...
2018-11-21 14:39:50
811
转载 vue总结
一、框架和库的区别框架(framework):有着自己的语法特点、都有对应的各个模块。库(library):专注于一点。框架的好处: 提到代码的质量,开发速度 提高代码的复用率 降低模块之间的耦合度(高内聚低耦合) UI:user interfaceGUI:graphical user interfaceCLI:command line inter...
2018-11-14 09:38:53
141
转载 axios
// 测试地址const API = { local:'XXXXX', online:'XXXXX', };//axios固定参数,定义全局变量//方法一:var login_key,uid;function getUrlParam(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]...
2018-11-13 14:20:23
160
原创 vuex使用
// 入口文件import Vue from 'vue'// 配置vuex的步骤// 1. 运行 cnpm i vuex -S // 2. 导入包import Vuex from 'vuex'// 3. 注册vuex到vue中Vue.use(Vuex)// 4. new Vuex.Store() 实例,得到一个 数据仓储对象var store = new Vuex.Store({...
2018-10-21 00:03:28
162
原创 添加删除搜索
<table class="table table-bordered table-hover table-striped"> <thead> <tr> <th>Id</th> <th>Name</th> &a
2018-10-16 22:57:20
288
原创 加载更多
<style type="text/css"> /* 正在加载公共样式 */ .loadmore { color: #888; font-size: 30px; line-height: 100px; text-align: center; } ...
2018-10-16 22:51:28
584
原创 购物车小球动画
.ball { width: 15px; height: 15px; border-radius: 50%; background-color: red; position: absolute; z-index: 99; top: 390px; left: 146px; }<transition @befor...
2018-10-16 22:42:34
398
原创 滚动
function callback() { // getBoundingClientRect用于获得页面中某个元素的左,上,右和下分别相对浏览器视窗的位置 const top = wrapper.getBoundingClientRect().top // 获取视口大小 const windowHeight = window.scre...
2018-10-14 08:45:05
138
转载 JavaScript学习笔记--scroll
网页可见区域宽: document.body.clientWidth; 网页可见区域高: document.body.clientHeight; 网页可见区域宽: document.body.offsetWidth (包括边线的宽); 网页可见区域高: document.body.offsetHeight (包括边线的宽); 网页正文全文宽: document.body.scrollWid...
2018-10-14 08:25:58
164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅