随笔分类 - js
js
摘要:js内置对象方法笔记 js内置对象方法笔记 Table of Contents 1 内容概述 2 Array 2.1 array.concat(item…) 2.2 array.join(separator) 2.3 array.pop() 2.4 array.push(item…) 2.5 arr
阅读全文
posted @ 2016-04-17 12:21
小董儿博客
摘要:console.log({}.toString.call(123)) [object Number]。。。。 [object String] [object Undefined] [object Null] [object Object] [object Function] [object Bool
阅读全文
摘要:function a(){ this.name="aaa"; } function b(){ this.age=100; } 我们定义两个function,当我们实例化的对象的时候的操作是这样的 var A=new a(); 1、创建一个对象(有constructor属性及[[Prototype]]
阅读全文
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" type="text/css" href="base.css"/> <script src="sizzle.js" t
阅读全文
摘要://addcss Base.prototype.addcss=function(num,selectortxt,csses,ind){ var sheet=document.styleSheets[num]; if(typeof sheet.insertRule!=undefined) { shee
阅读全文
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" type="text/css" href="base.css"/> <script src="sizzle.js" t
阅读全文
摘要://addclass Base.prototype.addclass=function(classname){ for(var i=0;i<this.elements.length;i++) { //去重 if(!this.elements[i].className.match(new RegExp
阅读全文
摘要:math.abs(x) 返回数的绝对值。math.acos(x) 返回数的反余弦值。math.asin(x) 返回数的反正弦值。math.atan(x) 以介于 -PI/2 与 PI/2 弧度之间的数值来返回 x 的反正切值。math.atan2(y,x) 返回从 x 轴到点 (x,y) ...
阅读全文
摘要:constructor:每一个函数的Prototype属性指向的对象都包含唯一一个不可枚举属性constructor,该属性的值是这么一个对象:constructor指向了它所在的构造函数Prototype:每一个函数都包含一个prototype属性,这个属性指向的是一个对象的引用;而对已每一个函数...
阅读全文

浙公网安备 33010602011771号