摘要: 此处写法是 css 写好样式放在一个新class名 js 点击时给要翻转的元素添加class名称。 阅读全文
posted @ 2018-09-06 18:38 Millet_23 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 使用: 阅读全文
posted @ 2018-09-06 17:54 Millet_23 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1 /*-----------------------------------------------------------------------------------------------------------------------*/ /*------------------------------------------------------------------... 阅读全文
posted @ 2018-09-06 13:09 Millet_23 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 函数预编译发生在函数执行的前一刻。 1、创建AO对象 2、找形参和变量声明,将变量和形参名作为AO属性名,值为undefined 3、将实参和形参统一 4、在函数体里面找函数声明,赋值与函数体 实例1 实例2 阅读全文
posted @ 2018-08-03 13:25 Millet_23 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 行内块状,宽度不是100%,不设置宽度,那么它根据自身的内容决定, 阅读全文
posted @ 2018-08-03 11:59 Millet_23 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1 /*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ ! function(a, b) { "use strict"; "object" == typeof module && "object" == typeof module.exports ? module.expor... 阅读全文
posted @ 2018-08-02 19:09 Millet_23 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 数组属性 constructor 定义和用法 在JavaScript中,constructor属性返回对象的构造函数。 返回值是构造函数的引用,不是函数名: JavaScript 数组 constructor 属性返回 function Array () { [ native code ] } Ja 阅读全文
posted @ 2018-07-30 18:55 Millet_23 阅读(187) 评论(0) 推荐(0) 编辑
摘要: DOM Document对象属性和方法 document.getElementById(elememtID) 定义和用法 这个方法可以返回拥有指定ID的第一个对象。如果没有指定ID的元素,则返回 null。如果存在多个指定ID的元素,则返回 undefined。 语法 例子 document.get 阅读全文
posted @ 2018-07-30 11:59 Millet_23 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2018-07-17 11:14 Millet_23 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 应用了document.readyState和onreadystatechange onreadystatechange 事件 当请求被发送到服务器时,我们需要执行一些基于响应的任务。 每当 readyState 改变时,就会触发 onreadystatechange 事件。 readyState 阅读全文
posted @ 2018-07-17 10:31 Millet_23 阅读(305) 评论(0) 推荐(0) 编辑