上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 一、常规的JS页面跳转代码 1、在原来的窗体中直接跳转用<script type="text/javascript"> window.location.href="你所要跳转的页面"; </script>2、在新窗体中打开页面用:<script type="text/javascript"> win 阅读全文
posted @ 2019-04-15 10:31 青石小巷 阅读(1928) 评论(0) 推荐(0)
摘要: 1,element表格切入按钮 关键代码: 2,element表格切入复选框 关键代码: 阅读全文
posted @ 2019-04-12 09:32 青石小巷 阅读(941) 评论(0) 推荐(0)
摘要: 1,css超出一行用点表示 white-space:nowrap; overflow:hidden; text-overflow:ellipsis; 2,css超出二行用点表示 overflow:hidden; text-overflow:ellipsis; display:-webkit-box; 阅读全文
posted @ 2019-04-12 09:18 青石小巷 阅读(32592) 评论(0) 推荐(0)
摘要: 父页面代码: html: <div id="app"> //省略业务代码x行..... <iframe src="/sonpage" > //省略业务代码x行..... </div> vuejs: var vm = new Vue({ el: '#app', data: { id:'123', }, 阅读全文
posted @ 2019-04-10 16:22 青石小巷 阅读(10036) 评论(3) 推荐(0)
摘要: 使用JSON.parse()函数 this.dataList = JSON.parse(dataList); 使用eval()函数 var jsonStr = '{"name":"zhangsan","age":23,"email":"chentging@aliyun.com"}'; var jso 阅读全文
posted @ 2019-04-10 10:31 青石小巷 阅读(548) 评论(0) 推荐(0)
摘要: 1,element 表格嵌入CheckBox 效果图如下: 2,element结合checkBox实现单选效果如下: html代码: js代码: 阅读全文
posted @ 2019-04-08 14:26 青石小巷 阅读(7432) 评论(0) 推荐(0)
摘要: 1,将数组array分成长度为subGroupLength的小数组并返回新数组 function group(array, subGroupLength) { let index = 0; let newArray = []; while(index < array.length) { newArr 阅读全文
posted @ 2019-03-19 17:23 青石小巷 阅读(45904) 评论(0) 推荐(0)
摘要: 1,vue动画的实现原理,主要是通过在不同时期给需要动画的dom元素加上css动画样式 我们以显示和隐藏动画为例 a, 需要动画的dom元素 b,点击时vue控制往vue中加的样式 2, 我们以两张图为例,更为清楚地表示vue什么时候往dom元素中加样式 点击按钮隐藏时 点击按钮逐渐显示时 如果您还 阅读全文
posted @ 2019-01-05 17:49 青石小巷 阅读(972) 评论(0) 推荐(1)
摘要: git 常用命令以及推荐git新建上传个人博客 $ git clone //本地如果无远程代码,先做这步,不然就忽略 $ git status //查看本地自己修改了多少文件 $ git add . //添加远程不存在的git文件 $ git commit -m "更新说明" //提交修改 $ gi 阅读全文
posted @ 2018-12-19 23:11 青石小巷 阅读(1624) 评论(0) 推荐(0)
摘要: 1,标签跳转 <router-link to='two.html'><button>点我到第二个页面</button></router-link> 2,点击事件跳转 html : <button @click="hreftwo" class="test-one">点我到第二个页面</button> 阅读全文
posted @ 2018-12-07 17:35 青石小巷 阅读(135801) 评论(0) 推荐(5)
上一页 1 ··· 5 6 7 8 9 10 下一页