该文被密码保护。 阅读全文
posted @ 2018-08-29 20:17 justSmile2 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1.常用api 创建 Date 对象 - 年 - 月 - 日 - 小时 - 分 - 秒 - 星期 var now=new Date() var year = now.getFullYear(); var month = now.getMonth(); (月 :0 - 11 ,处理: month = 阅读全文
posted @ 2018-08-29 19:51 justSmile2 阅读(246) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-08-29 18:53 justSmile2 阅读(59) 评论(0) 推荐(0) 编辑
摘要: jq 选择器 1.相对值用法 width("+=250px") $("input").width("+=250px"); 2.使用函数来设置 CSS 属性: $(selector).css(name,function(index,value)) $("div").css("width", funct 阅读全文
posted @ 2018-08-28 15:44 justSmile2 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 1.js事件写法 document.onkeyup=function(event){ var e = event || window.event; var k = e.keyCode || e.which || e.charCode; if (k == 13) { ... }; var e = ev 阅读全文
posted @ 2018-08-28 14:19 justSmile2 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1.js对象转jq对象: $() $('#kw') $(document.getElementById("kw")) 2.jq对象转js对象: $(this).get(0) 、$(this)[0] $('#kw').get(0) $('#kw').[0] 3.封装自己的‘jq’ 思路: 依据现有ap 阅读全文
posted @ 2018-08-27 19:48 justSmile2 阅读(1433) 评论(0) 推荐(0) 编辑
摘要: 1.写法 - 默认值 - 单独写法 - 意义animation: name duration timing-function delay iteration-count direction; animation: none 0 ease 0 1 normal; animation: animatio 阅读全文
posted @ 2018-08-27 19:16 justSmile2 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1.浏览器滚动条 默认风格各异,推荐一插件 mCustomScrollbar 不考虑兼容也可自定义样式 链接二 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content=" 阅读全文
posted @ 2018-08-27 12:02 justSmile2 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 此效果涉及到 : 1. css 画图形 2. css3 动态效果 3. 贝塞尔曲线 用法 <style> .lds-hourglass { display: inline-block; position: relative; width: 72px; height: 72px } .lds-hour 阅读全文
posted @ 2018-08-24 19:03 justSmile2 阅读(334) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-08-24 18:24 justSmile2 阅读(23) 评论(0) 推荐(0) 编辑