01 2019 档案

摘要:在高版本的jquery引入prop方法后,什么时候该用prop?什么时候用attr?它们两个之间有什么区别?这些问题就出现了。 关于它们两个的区别,网上的答案很多。这里谈谈我的心得,我的心得很简单: 对于HTML元素本身就带有的固有属性,在处理时,使用prop方法。对于HTML元素我们自己自定义的D 阅读全文
posted @ 2019-01-19 14:12 chenjacky 阅读(118) 评论(0) 推荐(0)
摘要:$('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', fun 阅读全文
posted @ 2019-01-12 01:11 chenjacky 阅读(155) 评论(0) 推荐(0)
摘要:JS排序 键值对 var sortBy=function (filed,rev,primer){ rev = (rev) ? -1 : 1; return function (a, b) { a = a[filed]; b = b[filed]; if (typeof (primer) != 'un 阅读全文
posted @ 2019-01-07 11:08 chenjacky 阅读(1479) 评论(0) 推荐(0)
摘要:jc-tag{width:80px;text-align:center;height:20px;line-height:20px;font-size:12px;color:#fff;background-color:#fc0;/* Rotate div */transform:rotate(315d 阅读全文
posted @ 2019-01-07 11:04 chenjacky
摘要:.jc-row-between{ display: -webkit-box; -webkit-box-pack: justify; justify-content: space-between; } 在该CSS下子元素,会两端对齐。 阅读全文
posted @ 2019-01-07 10:56 chenjacky