随笔分类 - js
摘要:第一次发文章感觉有点慌,但是还是发了,希望别喷! 1,function a() {console.log(this)} ;function b(){console.log(this)} ; 求:a.call(null),a.call(b)分别返回什么? 第一个返回原对象,this的东西,第二个返回b
阅读全文
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>选项卡</title> <link rel="stylesheet" hre
阅读全文
摘要:HTMl5的sessionStorage和localStorage html5中的Web Storage包括了两种存储方式:sessionStorage和localStorage。 sessionStorage用于本地存储一个会话(session)中的数据,这些数据只有在同一个会话中的页面才能访问并
阅读全文
摘要:<!DOCTYPE html><html><head> <title></title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content
阅读全文
摘要:<!DOCTYPE html><html><head> <title></title> <script type="text/javascript" src="jquery-1.11.2.min.js"></script></head><body> <style type="text/css">vi
阅读全文
摘要:<!DOCTYPE html><html><head> <title></title> <script type="text/javascript" src="jquery-1.11.2.min.js"></script></head><body> <style type="text/css">vi
阅读全文
摘要:<!doctype html><html><head><meta charset="utf-8"><title>无标题文档</title><style>html,body{ height:100%;} .btn{ width:50px; /*宽:50像素*/ height:50px;/*高:50像素
阅读全文
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title></title> <script type="text/javascript" src="jquery-1.11.2.min.js"></script></head><body><st
阅读全文
摘要:通过滑动滑块确定页数 @charset "utf-8"; /* css document */ body { font-size: 12px; font-family: arial, helvetica, sans-serif; text-align: center; margin: 0 auto; } table { bo...
阅读全文
摘要:第一种,prototype的方式: 这种方式最为简单,只需要让子类的prototype属性值赋值为被继承的一个实例就行了,之后就可以直接使用被继承类的方法了。 prototype 属性是啥意思呢? prototype 即为原型,每一个对象 ( 由 function 定义出来 ) 都有一个默认的原型属
阅读全文

浙公网安备 33010602011771号