摘要: Math 对象用于执行数学任务。 1、使用 Math 的属性和方法的语法: 注释:Math 对象并不像 Date 和 String 那样是对象的类,因此没有构造函数 Math(),像 Math.sin() 这样的函数只是函数,不是某个对象的方法。您无需创建它,通过把 Math 作为对象使用就可以调用 阅读全文
posted @ 2017-01-16 13:54 雪明瑶 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 距离15点还有[00:00:00] function addZero(value) { return value < 10 ? "0" + value : value; } function timeDiff() { var nowTime = new Date(); ... 阅读全文
posted @ 2017-01-13 15:43 雪明瑶 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1、Date 对象创建 2、Date 对象属性 constructor pototype 3、Date 对象方法 Date() 返回当日的日期和时间。 getDate() 从 Date 对象返回一个月中的某一天 (1 ~ 31)。 getDay() 从 Date 对象返回一周中的某一天 (0 ~ 6 阅读全文
posted @ 2017-01-13 15:38 雪明瑶 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Boolean 对象表示两个值:"true" 或 "false"。 1、创建 2、Boolean(value)的转化规则 如果参数没有,或为0,false,"",null,undefind,NaN时他的返回值为false,其余的都是true。 3、Boolean 对象属性 constructor 返 阅读全文
posted @ 2017-01-12 11:43 雪明瑶 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1、Array 创建 2、Array 对象属性 contractor:返回对创建此对象的数组函数的引用 length:返回数组长度 prototype:可以向对象添加属性和方法 3、Array 对象方法(常用的11个) 增 push unshift 原数组有改变,返回的是数组的新长度。 删 pop 阅读全文
posted @ 2017-01-12 10:57 雪明瑶 阅读(147) 评论(0) 推荐(0) 编辑
摘要: <!--ie9样式重置--> <!--[if IE 9]> <style> select { background: none; padding-right: 0 !important; padding-left: 0 !important; } </style> <![endif]--> 这是试出 阅读全文
posted @ 2016-12-06 13:39 雪明瑶 阅读(1711) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,input会有这个记忆功能,如果不想让它记忆,可以在input上加上autocomplete="off"即可。 阅读全文
posted @ 2016-11-08 09:41 雪明瑶 阅读(9300) 评论(0) 推荐(0) 编辑
摘要: 以前觉得表单校验好难,今天终于弄明白了。 阅读全文
posted @ 2016-11-02 17:15 雪明瑶 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 假如路径是这样的:www.domain.com/list/?menu=1 var locationUrl = location.search.substring(6); switch(locationUrl) { case "1": $(".zxdt").click(); break; case " 阅读全文
posted @ 2016-11-02 11:51 雪明瑶 阅读(6139) 评论(0) 推荐(0) 编辑
摘要: @font-face是CSS3中的一个模块,他主要是把自己定义的Web字体嵌入到你的网页中,随着@font-face模块的出现,我们在Web的开发中使用字体就不用再为只能使用Web安全字体烦恼了!肯定会有人问,这样的东西IE能支持吗?我告诉大家@font-face这个功能其实早在IE4就支持了,你肯 阅读全文
posted @ 2016-10-28 16:58 雪明瑶 阅读(155) 评论(0) 推荐(0) 编辑