摘要: 阅读全文
posted @ 2014-09-15 09:30 ^cherish~ 阅读(551) 评论(0) 推荐(0)
摘要: // 糟糕$first.click(function(){$first.css('border','1px solid red');$first.css('color','blue');});// 建议$first.on('click',function(){$first.css({'border'... 阅读全文
posted @ 2014-06-22 12:57 ^cherish~ 阅读(78) 评论(0) 推荐(0)
摘要: 给modal 添加一个data-backdrop="static" 当点击其他空白的地方 modal不会隐藏 只有点击取消或确定的按钮的时候才能隐藏 而且要注意 modal和dialog的区别 阅读全文
posted @ 2014-06-09 10:44 ^cherish~ 阅读(123) 评论(0) 推荐(0)
摘要: hack用来处理浏览器css的兼容问题 阅读全文
posted @ 2014-05-14 09:40 ^cherish~ 阅读(91) 评论(0) 推荐(0)
摘要: undefined, null, -0, 0, NaN, "" 阅读全文
posted @ 2014-05-10 15:24 ^cherish~ 阅读(178) 评论(0) 推荐(0)
摘要: Prototype是一个对象的属性,它是由这个对象创建的子对象的原型__proto__是一个对象的内部属性,指向它的原型,也可以通过Object.getPrototypeOf()来获取对象的原型,但是用__proto__更快。有点拗口,意思就是__proto__属性指向的才是自己的原型,而proto... 阅读全文
posted @ 2014-05-10 14:48 ^cherish~ 阅读(483) 评论(0) 推荐(0)
摘要: ajax同步的意思是当JS代码加载到当前AJAX的时候会把页面里所有的代码停止加载,页面出去假死状态,当这个AJAX执行完毕后才会继续运行其他代码页面假死状态解除。而异步则这个AJAX代码运行中的时候其他代码一样可以运行。 阅读全文
posted @ 2014-04-22 22:29 ^cherish~ 阅读(116) 评论(1) 推荐(0)