摘要: 整理之前学习js的笔记 getByClass: 阅读全文
posted @ 2017-06-29 16:09 swift-zsw 阅读(193) 评论(5) 推荐(0) 编辑
摘要: cssText//对之前的cssText覆盖 禁止点击按钮 disabled=true; this:指的是调用当前方法(函数)的那个对象 alert(this);//object window function fn1(){ alert(this);} var oBtn=document.getEl 阅读全文
posted @ 2017-06-27 17:00 swift-zsw 阅读(184) 评论(0) 推荐(0) 编辑
摘要: var url=['img0.jpg','img1.jpg','img2.jpg','img3.jpg']; var ifo=['王昭君','鲁班','后羿','亚瑟']; JSON数据格式: var url_ifo={ url:['img0.jpg','img1.jpg','img2.jpg',' 阅读全文
posted @ 2017-06-26 23:47 swift-zsw 阅读(216) 评论(0) 推荐(0) 编辑
摘要: chatAt() alert(str.length); alert(str.chatAt())//括号里面没有值默认弹出第一个字符。超过str.length 1或小于0弹出框无值 chatCodeAt()可返回指定位置的字符的 Unicode 编码 fromCharCode()可返回Unicode编 阅读全文
posted @ 2017-06-26 00:34 swift-zsw 阅读(198) 评论(0) 推荐(0) 编辑
摘要: $下常用方法 $().xxx:只能给jq对象用 $.xxx不仅可以给jq用也可以给原生js用,叫做工具方法 $.type() $.trim() $.inArray() $.proxy() $.noConflict() $.parseJSON() $.makeArray() $.ajax() jq的插 阅读全文
posted @ 2017-04-24 09:36 swift-zsw 阅读(143) 评论(0) 推荐(0) 编辑
摘要: wrap add slice 数据操作 jQuery中的运动animate 事件委托 主动触发 事件细节 阅读全文
posted @ 2017-04-23 17:27 swift-zsw 阅读(137) 评论(0) 推荐(0) 编辑
摘要: get():把jQuery转化成原生js outerWidth与原生offsetWidth的区别: text()与html的区别 页面加载三种写法 parents siblings()、nextAll()、prevAll()、nextUntil() clone 阅读全文
posted @ 2017-04-23 12:16 swift-zsw 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 分栏布局,目前只支持webkit内核前缀 webkit column width:250px 效果图: webkit column count:4 效果图: webkit column gap:30px栏目间距30px webkit column rule:1px solid black栏目间距线 阅读全文
posted @ 2017-04-18 00:33 swift-zsw 阅读(235) 评论(0) 推荐(0) 编辑
摘要: box shadow:跟text shadow类似,可多层叠加 box shadow:[inset] x y blur [spread] color inset:投影方式,inset内投影,不加参数外投影 spread扩展阴影半径,先扩展,再模糊 box reflect:倒影,只有webkit we 阅读全文
posted @ 2017-04-17 23:55 swift-zsw 阅读(314) 评论(0) 推荐(0) 编辑
摘要: first 效果如图: second 效果图: third 效果图: fourth 弹性空间 效果图: fifth 效果图: sixth 在垂直方向上对元素位置进行管理 start end center 一个位置宽高的元素水平垂直居中显示在页面中: 效果图: 阅读全文
posted @ 2017-04-16 23:59 swift-zsw 阅读(127) 评论(0) 推荐(0) 编辑