摘要: .slidebar folder li{ padding:8px 0 8px 15px; position:relative;}folder li + li:before{ position:absolute; top:-1px; left:0; content:''; width:100%; he... 阅读全文
posted @ 2015-10-07 20:42 Mi文 阅读(634) 评论(0) 推荐(0) 编辑
摘要: max-width:100% 可以让img虽屏幕的大小而自由变换大小 阅读全文
posted @ 2015-10-07 20:36 Mi文 阅读(521) 评论(0) 推荐(0) 编辑
摘要: text-overflow:ellipsis;overflow:hidden;word-break:break-all;-webkit-box-orient:vertical;-webkit-line-clamp:4;//第几行显得点点点 阅读全文
posted @ 2015-10-07 20:35 Mi文 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 下拉刷新 iScroll ... 阅读全文
posted @ 2015-09-22 17:56 Mi文 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 我们在js中可能经常会用到for in来遍历对象中的属性,当然for in中得到的属性,只能是可枚举的属性,至于什么是可枚举的属性,百度去吧,哈哈!for in的时候,它会把对象的属性(包括原型的属性)遍历一遍例如:有这么一段代码:var array = [];array.push(1);array... 阅读全文
posted @ 2015-09-16 11:48 Mi文 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 定义:拥有length属性,其它属性(索引)为非负整数(对象中的索引会被当做字符串来处理,这里你可以当做是个非负整数串来理解)不具有数组所具有的方法ps:这是我参考的定义,实际上,只要有length属性,且它的属性值为number类型就行了类数组示例:var a = {'1':'gg','2':'l... 阅读全文
posted @ 2015-09-04 22:19 Mi文 阅读(164) 评论(0) 推荐(0) 编辑
摘要: function A() { this.name = "hello"; return this.name; } function ... 阅读全文
posted @ 2015-09-02 14:28 Mi文 阅读(517) 评论(0) 推荐(0) 编辑
摘要: var core_deletedIds = {}; var a = core_deletedIds.toString; //var a=core_deletedIds.toString(); 带括号是返回对象,不带返回函数 alert(a... 阅读全文
posted @ 2015-08-31 10:35 Mi文 阅读(209) 评论(0) 推荐(0) 编辑
摘要: /*1、js缓存机制保存共用数据提高性能*/ var cache={}; var mult=function(){ var args=Array.prototype.joi... 阅读全文
posted @ 2015-08-30 09:42 Mi文 阅读(2521) 评论(0) 推荐(0) 编辑
摘要: angular事件指令和指令 ng-click/dblclick ng-mousedown/up ng-mouseenter/leave ng-mousemove/over/out ng-keydown/up/press ng-focus/... 阅读全文
posted @ 2015-08-21 14:37 Mi文 阅读(150) 评论(0) 推荐(0) 编辑