摘要: ng-sortable拖拽拉取效果demo地址:https://github.com/a5hik/ng-sortable 引入相关的js代码:bower install ng-sortable -save 引入js,引入css样式; 引用module; html代码: 阅读全文
posted @ 2017-09-14 21:06 芒果加冰 阅读(1504) 评论(0) 推荐(0) 编辑
摘要: 选中时状态: 阅读全文
posted @ 2017-09-14 20:30 芒果加冰 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 用ng-if判断当displayMore值为false时列表状态为收起状态,显示的按钮为展开按钮; 当displayMore的值为true时列表状态为展开状态,显示的按钮为收起按钮; html代码: 展开时状态: 阅读全文
posted @ 2017-09-14 16:29 芒果加冰 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 上传Excel文件代码demo: 下载上传js文件:bower install ng-file-uploa;引入js文件; 阅读全文
posted @ 2017-09-14 11:33 芒果加冰 阅读(574) 评论(0) 推荐(0) 编辑
摘要: css3引入的“vw”和“vh”基于宽度高度相对于窗口大小,“vw”=“view width”,“vh”=“view hight”; .demo { width: 100vw; font-size: 10vw; /* 宽度为窗口100%, 字体大小为窗口的10% */ } .demo2 { widt 阅读全文
posted @ 2017-08-29 21:00 芒果加冰 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ":first-child" 选择父元素下的第一个子元素。列: ol > li :first-child{color:red;} ol元素中的第一个li元素内容设为红色; ":last-child" 选择父元素的最后一个子元素。列: ul > li :last-child{background:bl 阅读全文
posted @ 2017-08-09 10:56 芒果加冰 阅读(275) 评论(0) 推荐(0) 编辑
摘要: js代码:.filter('currentCityFilter'(名称), [function () { return function (city,(city第一个参数对应currentCity值;名称可以不一样) cityList,(第二个参数) three(第三个参数)) { if (city 阅读全文
posted @ 2017-07-20 18:06 芒果加冰 阅读(145) 评论(0) 推荐(0) 编辑
摘要: html中用法:{{ date_expression | date : format : timezone}} 实例: <span>{{1288323623006 | date:'medium'}}</span><br> <span>{{1288323623006 | date:'yyyy-MM-d 阅读全文
posted @ 2017-07-20 10:20 芒果加冰 阅读(601) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-06-23 16:05 芒果加冰 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-06-23 16:03 芒果加冰 阅读(2) 评论(0) 推荐(0) 编辑