摘要: JS 获取本月第一天零点时间戳并转化成yy-mm-dd 格式 阅读全文
posted @ 2018-11-26 16:58 lilelile 阅读(4728) 评论(0) 推荐(0) 编辑
摘要: JS两个对象数组合并并去重 阅读全文
posted @ 2018-11-23 14:24 lilelile 阅读(10722) 评论(0) 推荐(1) 编辑
摘要: <template> <el-date-picker v-model="value2" align="right" type="date" placeholder="选择日期" :picker-options="pickerOptions1"> </el-date-picker> </templat 阅读全文
posted @ 2018-10-17 14:58 lilelile 阅读(8126) 评论(2) 推荐(1) 编辑
摘要: 1.前端通过spark-md5.js计算本地文件md5 2.vue如何利用自定义的事件,在子组件中修改父组件里边的值 3.vue子组件获取父组件的内容(props属性) 4.Element ui select同时获取value和label的值 5.element upload http-reques 阅读全文
posted @ 2018-09-21 14:08 lilelile 阅读(996) 评论(7) 推荐(0) 编辑
摘要: input::-webkit-input-placeholder { color: #ff0000; } input::-moz-input-placeholder { color: #ff0000; } input::-ms-input-placeholder { color: #ff0000;... 阅读全文
posted @ 2018-09-14 09:12 lilelile 阅读(4935) 评论(0) 推荐(1) 编辑
摘要: var time_begin = new Date().getTime(); while(true){ if(new Date().getTime()-time_begin > 500) break; } 阅读全文
posted @ 2018-05-17 16:28 lilelile 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 效果: 阅读全文
posted @ 2018-03-19 17:43 lilelile 阅读(1539) 评论(0) 推荐(0) 编辑
摘要: 1.如果浮动元素定宽,可以设置margin:0 auto居中 2.如果浮动元素不定宽,在元素外层创建一个它的父元素 为了不影响其他元素,需要清除浮动 <p style="margin: 1.5em 0;font-size: 13px;color: #fff;float: left;position: 阅读全文
posted @ 2018-01-05 15:27 lilelile 阅读(1106) 评论(2) 推荐(0) 编辑
摘要: 具体样式如图所示: 注:获取val值时记得要先引入jquery库奥。 1.下拉框 css部分 html js 2.复选框 css html js 3.单选框(不得不说 这个好麻烦 ) css html js 阅读全文
posted @ 2017-10-27 14:34 lilelile 阅读(1338) 评论(3) 推荐(0) 编辑
摘要: var str='aabbccaa'; str=str.replace('aa','dd'); 结果是 str='ddbbccaa' 后面的aa没有被替换,原因是这个写法替换的只有第一次出现的aa,后面的就无效了。 但是,可以使用正则表达式进行替换,模式需要指定为g,表示检索全局。 代码如下: va 阅读全文
posted @ 2017-09-29 12:03 lilelile 阅读(339) 评论(0) 推荐(0) 编辑