2017年7月31日

vue.js 项目打包上线的办法

摘要: 最近一直坚持每个月写一个小的vue.js 开发的项目,最后开发完成后想到很久之前给别人回答的一个问题:vue的项目如何上线,当时有千奇百怪的回答,我在想,这些人都是肿了么,vue的官方都说了,这个框架只是做了view这一层,所以并不是把这些开发完的东西直接拷贝到服务器上,而且需要打包为静态文件上传服 阅读全文

posted @ 2017-07-31 15:45 金彪 阅读(638) 评论(0) 推荐(0) 编辑

vue 的git 安装环境

摘要: 首先把npm转cnpm 用淘宝的 http://npm.taobao.org/ vue的npm https://cn.vuejs.org/v2/guide/installation.html 开始git搭建: 可以使用vue了 阅读全文

posted @ 2017-07-31 15:43 金彪 阅读(1434) 评论(0) 推荐(0) 编辑

2017年7月19日

rem 的使用,让手机适配更方便

摘要: // 给根元素设定标准,以rem为单位var iWidth=document.documentElement.getBoundingClientRect().width;if(iWidth>=540){ document.getElementsByTagName("html")[0].style.f 阅读全文

posted @ 2017-07-19 13:55 金彪 阅读(129) 评论(0) 推荐(0) 编辑

常用的前端插件

摘要: jqueryui官方jqueryui.com bootstrap官方http://getbootstrap.com/ 第三方插件库http://www.jq22.com/插件库http://www.dowebok.com/ jQuery全屏滚动插件fullPage.js swiper轮播图插件htt 阅读全文

posted @ 2017-07-19 13:49 金彪 阅读(136) 评论(0) 推荐(0) 编辑

让页面高度自动到底部 始终底部

摘要: document.getElementsByTagName('BODY')[0].scrollTop=document.getElementsByTagName('BODY')[0].scrollHeight; 阅读全文

posted @ 2017-07-19 13:47 金彪 阅读(160) 评论(0) 推荐(0) 编辑

限制textarea输入字数

摘要: <textarea class="test_box" contenteditable="true" placeholder="旅行,不在乎你的目的地,而是沿途的风景!" maxlength="200" onchange="this.value=this.value.substring(0, 200) 阅读全文

posted @ 2017-07-19 13:46 金彪 阅读(107) 评论(0) 推荐(0) 编辑

手机号正则验证

摘要: var reg=/^(\+86|0086)?\s*1[34578]\d{9}$/; var regto=reg.test($u_phonev); 阅读全文

posted @ 2017-07-19 13:46 金彪 阅读(100) 评论(0) 推荐(0) 编辑

label隐藏

摘要: /* position: absolute; */ /* width: 1px; */ /* height: 1px; */ /* margin: -1px; */ /* padding: 0; */ /* overflow: hidden; */ 最简单的 /* position: absolut 阅读全文

posted @ 2017-07-19 13:45 金彪 阅读(161) 评论(0) 推荐(0) 编辑

将默认的select选择框样式清除

摘要: appearance:none; -moz-appearance:none; -webkit-appearance:none; -ms-appearance:none; /*在选择框的最右侧中间显示小箭头图片*/ background: url(img/sele.png) no-repeat scr 阅读全文

posted @ 2017-07-19 13:44 金彪 阅读(148) 评论(0) 推荐(0) 编辑

ios input阴影 去除

摘要: /* ios input阴影 */input { outline: none; -webkit-appearance: none; /*去除系统默认的样式*/ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* 点击高亮的颜色*/} //IOS点击阴影 阅读全文

posted @ 2017-07-19 13:44 金彪 阅读(233) 评论(0) 推荐(0) 编辑

导航