EcmaScript源码
/**
@type {Number}
@const
*/
NaN = 0;
/**
@type {Number}
*/
Infinity = 0;
undefined = 0;
/**
@param {*} x
@return {Object}
*/
eval = function(x) {};
/**
@param {*} s
@param {Number} [radix]
@return {Number}
*/
parseInt = function(s,radix) {};
/**
@param {*} x
@return {Number}
*/
parseFloat = function(x) {};
/**
@param {Number} x
@return {boolean}
*/
isNaN = function(x) {};
/**
@param {Number} x
@return {boolean}
*/
isFinite = function(x) {};
/**
@param {string} encodedURI
@return {string}
*/
decodeURI = function(encodedURI) {};
/**
@param {string} encodedURIComponent
@return {string}
*/
decodeURIComponent = function(encodedURIComponent) {};
/**
@param {string} uri
@return {string}
*/
encodeURI = function(uri) {};
/**
@param {string} uriComponent
@return {string}
*/
encodeURIComponent = function(uriComponent) {}; /**
@type {function}
*/
Object.constructor = 0;
/**
@type {Number}
*/
Object.prototype.length = 0;
/**
@type {Object}
*/
Object.prototype.prototype = 0;
/**
@param {*} [value]
@constructor
*/
function Object(value) {}
/**
@return {string}
*/
Object.prototype.toLocaleString = function() {};
/**
@param {string} propertyName
@return {boolean}
*/
Object.prototype.hasOwnProperty = function(propertyName) {};
/**
@param {Object} o
@return {boolean}
*/
Object.prototype.isPrototypeOf = function(o) {};
/**
@param {string} propertyName
@return {boolean}
*/
Object.prototype.propertyIsEnumerable = function(propertyName) {};
/**
@return {string}
*/
Object.prototype.toString = function() {};
/**
@return {*}
*/
Object.prototype.valueOf = function() {}; /**
@param {...*} [args]
@constructor
@template T
*/
function Array(args) {}
/**
@param {...T|Array.<T>} [items]
@return {Array.<T>}
*/
Array.prototype.concat = function(items) {};
/**
@param {string} [separator]
@return {string}
*/
Array.prototype.join = function(separator) {};
/**
@return {T}
*/
Array.prototype.pop = function() {};
/**
@param {...T} [items]
@return {Number}
*/
Array.prototype.push = function(items) {};
/**
@return {Array.<T>}
*/
Array.prototype.reverse = function() {};
/**
@return {T}
*/
Array.prototype.shift = function() {};
/**
@param {Number} [start]
@param {Number} [end]
@return {Array.<T>}
*/
Array.prototype.slice = function(start,end) {};
/**
@param {function} [compareFn]
@return {Array.<T>}
*/
Array.prototype.sort = function(compareFn) {};
/**
@param {Number} [start]
@param {Number} [deleteCount]
@param {...T} [items]
@return {Array.<T>}
*/
Array.prototype.splice = function(start,deleteCount,items) {};
/**
@param {...T} [items]
@return {Number}
*/
Array.prototype.unshift = function(items) {};
/**
@return {Array}
*/
Array.prototype.valueOf = function() {}; /**
@param [value]
@constructor
@return {boolean}
*/
function Boolean(value) {}
/**
@return {boolean}
*/
Boolean.prototype.valueOf = function() {}; /**
@param {number} year
@param {number} month
@param {number} [date]
@param {number} [hours]
@param {number} [minutes]
@param {number} [seconds]
@param {number} [milliseconds]
@static
@return {number}
*/
Date.UTC = function(year,month,date,hours,minutes,seconds,milliseconds) {};
/**
@param {string} dateString
@static
@return {number}
*/
Date.parse = function(dateString) {};
/**
@param {...*} args
@constructor
*/
function Date(args) {}
/**
@return {number}
*/
Date.prototype.getDate = function() {};
/**
@return {number}
*/
Date.prototype.getDay = function() {};
/**
@return {number}
*/
Date.prototype.getMonth = function() {};
/**
@return {number}
*/
Date.prototype.getFullYear = function() {};
/**
@return {number}
*/
Date.prototype.getHours = function() {};
/**
@return {number}
*/
Date.prototype.getMilliseconds = function() {};
/**
@return {number}
*/
Date.prototype.getMinutes = function() {};
/**
@return {number}
*/
Date.prototype.getSeconds = function() {};
/**
@return {number}
*/
Date.prototype.getTime = function() {};
/**
@return {number}
*/
Date.prototype.getTimezoneOffset = function() {};
/**
@return {number}
*/
Date.prototype.getUTCDate = function() {};
/**
@return {number}
*/
Date.prototype.getUTCDay = function() {};
/**
@return {number}
*/
Date.prototype.getUTCFullYear = function() {};
/**
@return {number}
*/
Date.prototype.getUTCHours = function() {};
/**
@return {number}
*/
Date.prototype.getUTCMilliseconds = function() {};
/**
@return {number}
*/
Date.prototype.getUTCMinutes = function() {};
/**
@return {number}
*/
Date.prototype.getUTCMonth = function() {};
/**
@return {number}
*/
Date.prototype.getUTCSeconds = function() {};
/**
@return {number}
*/
Date.prototype.getYear = function() {};
/**
@param {number} date
*/
Date.prototype.setDate = function(date) {};
/**
@param {number} year
@param {number} [month]
@param {number} [day]
*/
Date.prototype.setFullYear = function(year,month,day) {};
/**
@param {number} hour
@param {number} [min]
@param {number} [sec]
@param {number} [ms]
*/
Date.prototype.setHours = function(hour,min,sec,ms) {};
/**
@param {number} ms
*/
Date.prototype.setMilliseconds = function(ms) {};
/**
@param {number} min
@param {number} [sec]
@param {number} [ms]
*/
Date.prototype.setMinutes = function(min,sec,ms) {};
/**
@param {number} month
@param {number} [day]
*/
Date.prototype.setMonth = function(month,day) {};
/**
@param {number} sec
@param {number} [ms]
*/
Date.prototype.setSeconds = function(sec,ms) {};
/**
@param {number} time
*/
Date.prototype.setTime = function(time) {};
/**
@param {number} date
*/
Date.prototype.setUTCDate = function(date) {};
/**
@param {number} year
@param {number} [month]
@param {number} [day]
*/
Date.prototype.setUTCFullYear = function(year,month,day) {};
/**
@param {number} hour
@param {number} [min]
@param {number} [sec]
@param {number} [ms]
*/
Date.prototype.setUTCHours = function(hour,min,sec,ms) {};
/**
@param {number} ms
*/
Date.prototype.setUTCMilliseconds = function(ms) {};
/**
@param {number} min
@param {number} [sec]
@param {number} [ms]
*/
Date.prototype.setUTCMinutes = function(min,sec,ms) {};
/**
@param {number} month
@param {number} [day]
*/
Date.prototype.setUTCMonth = function(month,day) {};
/**
@param {number} sec
@param {number} [ms]
*/
Date.prototype.setUTCSeconds = function(sec,ms) {};
/**
@param {number} value
*/
Date.prototype.setYear = function(value) {};
/**
@return {string}
*/
Date.prototype.toDateString = function() {};
/**
@return {string}
*/
Date.prototype.toISOString = function() {};
/**
@return {string}
*/
Date.prototype.toLocaleDateString = function() {};
/**
@return {string}
*/
Date.prototype.toLocaleString = function() {};
/**
@return {string}
*/
Date.prototype.toLocaleTimeString = function() {};
/**
@return {string}
*/
Date.prototype.toTimeString = function() {};
/**
@return {string}
*/
Date.prototype.toUTCString = function() {}; /**
@type {function}
*/
Arguments.prototype.callee = 0;
/**
@type {function}
@const
@deprecated
*/
Arguments.prototype.caller = 0;
Arguments.prototype = new Array();
Arguments = {}; /**
@type {Arguments}
@const
*/
Function.prototype.arguments = 0;
/**
@type {Number}
@const
*/
Function.prototype.arity = 0;
/**
@param {Object} [thisArg]
@param {Array} [argArray]
@return {*}
*/
Function.prototype.apply = function(thisArg,argArray) {};
/**
@param {Object} [thisArg]
@param {...*} [args]
@return {*}
*/
Function.prototype.call = function(thisArg,args) {};
Function = {}; /**
@static
@type {number}
@const
*/
Math.E = 0;
/**
@static
@type {number}
@const
*/
Math.LN10 = 0;
/**
@static
@type {number}
@const
*/
Math.LN2 = 0;
/**
@static
@type {number}
@const
*/
Math.LOG10E = 0;
/**
@static
@type {number}
@const
*/
Math.LOG2E = 0;
/**
@static
@type {number}
@const
*/
Math.PI = 0;
/**
@static
@type {number}
@const
*/
Math.SQRT1_2 = 0;
/**
@static
@type {number}
@const
*/
Math.SQRT2 = 0;
/**
@param {number} x
@static
@return {number}
*/
Math.abs = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.acos = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.asin = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.atan = function(x) {};
/**
@param {number} x
@param {number} y
@static
@return {number}
*/
Math.atan2 = function(x,y) {};
/**
@param {number} x
@static
@return {number}
*/
Math.ceil = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.cos = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.exp = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.floor = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.log = function(x) {};
/**
@param {...number} x
@static
@return {number}
*/
Math.max = function(x) {};
/**
@param {...number} x
@static
@return {number}
*/
Math.min = function(x) {};
/**
@param {number} x
@param {number} y
@static
@return {number}
*/
Math.pow = function(x,y) {};
/**
@static
@return {number}
*/
Math.random = function() {};
/**
@param {number} x
@static
@return {number}
*/
Math.round = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.sin = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.sqrt = function(x) {};
/**
@param {number} x
@static
@return {number}
*/
Math.tan = function(x) {};
Math = {}; /**
@static
@type {Number}
@const
*/
Number.MAX_VALUE = 0;
/**
@static
@type {Number}
@const
*/
Number.MIN_VALUE = 0;
/**
@static
@type {Number}
@const
*/
Number.NaN = 0;
/**
@static
@type {Number}
@const
*/
Number.NEGATIVE_INFINITY = 0;
/**
@static
@type {Number}
@const
*/
Number.POSITIVE_INFINITY = 0;
/**
@param [value]
@constructor
@return {number}
*/
function Number(value) {}
/**
@param {Number} [fractionalDigits]
@return {string}
*/
Number.prototype.toExponential = function(fractionalDigits) {};
/**
@param {Number} [fractionalDigits]
@return {string}
*/
Number.prototype.toFixed = function(fractionalDigits) {};
/**
@param {Number} [precision]
@return {string}
*/
Number.prototype.toPrecision = function(precision) {};
/**
@param {Number} [radix]
@return {string}
*/
Number.prototype.toString = function(radix) {};
/**
@return {Number}
*/
Number.prototype.valueOf = function() {}; /**
@static
@type {string}
@const
*/
RegExp.leftContext = null;
/**
@static
@type {string}
@const
*/
RegExp.input = null;
/**
@static
@type {string}
@const
*/
RegExp.lastParen = null;
/**
@static
@type {string}
@const
*/
RegExp.lastMatch = null;
/**
@static
@type {string}
@const
*/
RegExp.rightContext = null;
/**
@static
@type {string}
@const
*/
RegExp.$1 = null;
/**
@static
@type {string}
@const
*/
RegExp.$2 = null;
/**
@static
@type {string}
@const
*/
RegExp.$3 = null;
/**
@static
@type {string}
@const
*/
RegExp.$4 = null;
/**
@static
@type {string}
@const
*/
RegExp.$5 = null;
/**
@type {boolean}
@const
*/
RegExp.prototype.global = 0;
/**
@type {boolean}
@const
*/
RegExp.prototype.ignoreCase = 0;
/**
@type {Number}
*/
RegExp.prototype.lastIndex = 0;
/**
@type {boolean}
*/
RegExp.prototype.multiline = 0;
/**
@type {string}
*/
RegExp.prototype.source = null;
/**
@param {string} [pattern]
@param {string} [options]
@constructor
*/
function RegExp(pattern,options) {}
/**
@param {string} [String]
@return {Array|{index:number, input:string}}
*/
RegExp.prototype.exec = function(String) {};
/**
@param {string} [String]
@return {boolean}
*/
RegExp.prototype.test = function(String) {}; /**
@param {...Number} [chars]
@static
@return {string}
*/
String.fromCharCode = function(chars) {};
/**
@param [value]
@constructor
@return {string}
*/
function String(value) {}
/**
@param {string} [nameAttribute]
@return {string}
*/
String.prototype.anchor = function(nameAttribute) {};
/**
@return {string}
*/
String.prototype.big = function() {};
/**
@return {string}
*/
String.prototype.blink = function() {};
/**
@return {string}
*/
String.prototype.bold = function() {};
/**
@param {Number} pos
@return {string}
*/
String.prototype.charAt = function(pos) {};
/**
@return {Number}
*/
String.prototype.charCodeAt = function(index) {};
/**
@param {...string} [strings]
@return {string}
*/
String.prototype.concat = function(strings) {};
/**
@return {string}
*/
String.prototype.fixed = function() {};
/**
@param {string} color
@return {string}
*/
String.prototype.fontcolor = function(color) {};
/**
@param {Number} size
@return {string}
*/
String.prototype.fontsize = function(size) {};
/**
@param {string} searchString
@param {Number} [position]
@return {Number}
*/
String.prototype.indexOf = function(searchString,position) {};
/**
@return {string}
*/
String.prototype.italics = function() {};
/**
@param {string} searchString
@param {Number} [position]
@return {Number}
*/
String.prototype.lastIndexOf = function(searchString,position) {};
/**
@param {string} href
@return {string}
*/
String.prototype.link = function(href) {};
/**
@param {string} that
@return {boolean}
*/
String.prototype.localeCompare = function(that) {};
/**
@param {RegExp} regexp
@return {Array|{index:number, input:string}}
*/
String.prototype.match = function(regexp) {};
/**
@param {RegExp|string} searchValue
@param {string|function} replaceValue
@return {string}
*/
String.prototype.replace = function(searchValue,replaceValue) {};
/**
@param {*} regexp
@return {Number}
*/
String.prototype.search = function(regexp) {};
/**
@param {Number} start
@param {Number} [end]
@return {string}
*/
String.prototype.slice = function(start,end) {};
/**
@return {string}
*/
String.prototype.small = function() {};
/**
@param {*} separator
@param {Number} [limit]
@return {Array}
*/
String.prototype.split = function(separator,limit) {};
/**
@return {string}
*/
String.prototype.strike = function() {};
/**
@return {string}
*/
String.prototype.sub = function() {};
/**
@param {Number} start
@param {Number} [length]
@return {string}
*/
String.prototype.substr = function(start,length) {};
/**
@param {Number} start
@param {Number} [end]
@return {string}
*/
String.prototype.substring = function(start,end) {};
/**
@return {string}
*/
String.prototype.sup = function() {};
/**
@return {string}
*/
String.prototype.toLowerCase = function() {};
/**
@return {string}
*/
String.prototype.toLocaleLowerCase = function() {};
/**
@return {string}
*/
String.prototype.toLocaleUpperCase = function() {};
/**
@return {string}
*/
String.prototype.toUpperCase = function() {};
/**
@return {string}
*/
String.prototype.valueOf = function() {}; /**
@type {string}
*/
Error.prototype.name = null;
/**
@type {string}
*/
Error.prototype.message = null;
/**
@param {*} [msg]
@param {*} [id]
@constructor
*/
function Error(msg,id) {} EvalError.prototype = new Error();
EvalError = {}; RangeError.prototype = new Error();
RangeError = {}; ReferenceError.prototype = new Error();
ReferenceError = {}; SyntaxError.prototype = new Error();
SyntaxError = {}; TypeError.prototype = new Error();
TypeError = {}; URIError.prototype = new Error();
URIError = {};
EcmaScript源码的更多相关文章
- underscore 源码解读之 bind 方法的实现
自从进入七月以来,我的 underscore 源码解读系列 更新缓慢,再这样下去,今年更完的目标似乎要落空,赶紧写一篇压压惊. 前文 跟大家简单介绍了下 ES5 中的 bind 方法以及使用场景(没读 ...
- jQuery源码分析系列(36) : Ajax - 类型转化器
什么是类型转化器? jQuery支持不同格式的数据返回形式,比如dataType为 xml, json,jsonp,script, or html 但是浏览器的XMLHttpRequest对象对数据的 ...
- jQuery源码 Ajax模块分析
写在前面: 先讲讲ajax中的相关函数,然后结合函数功能来具体分析源代码. 相关函数: >>ajax全局事件处理程序 .ajaxStart(handler) 注册一个ajaxStart事件 ...
- jQuery-1.9.1源码分析系列(七) 钩子(hooks)机制及浏览器兼容
处理浏览器兼容问题实际上不是jQuery的精髓,毕竟让技术员想方设法取弥补浏览器的过错从而使得代码乱七八糟不是个好事.一些特殊情况的处理,完全实在浪费浏览器的性能:突兀的兼容解决使得的代码看起来既不美 ...
- jQuery-1.9.1源码分析系列(十) 事件系统——事件包装
首先需要明白,浏览器的原生事件是只读的,限制了jQuery对他的操作.举个简单的例子就能明白为什么jQuery非要构造一个新的事件对象. 在委托处理中,a节点委托b节点在a被click的时候执行fn函 ...
- jQuery-1.9.1源码分析系列(十六)ajax——响应数据处理和api整理
ajax在得到请求响应后主要会做两个处理:获取响应数据和使用类型转化器转化数据 a.获取响应数据 获取响应数据是调用ajaxHandleResponses函数来处理. ajaxHandleRespon ...
- jquery2源码分析系列
学习jquery的源码对于提高前端的能力很有帮助,下面的系列是我在网上看到的对jquery2的源码的分析.等有时间了好好研究下.我们知道jquery2开始就不支持IE6-8了,从jquery2的源码中 ...
- [译]JavaScript源码转换:非破坏式与再生式
原文:http://ariya.ofilabs.com/2013/06/javascript-source-transformation-non-destructive-vs-regenerative ...
- jQuery源码解读 - 数据缓存系统:jQuery.data
jQuery在1.2后引入jQuery.data(数据缓存系统),主要的作用是让一组自定义的数据可以DOM元素相关联——浅显的说:就是让一个对象和一组数据一对一的关联. 一组和Element相关的数据 ...
随机推荐
- Statement
题目大意 给定一棵基环外向树,和若干组询问,对于每次独立的询问都指定一些起点和一些终点,你删去一些边,使得从任意起点出发都无法到达终点,并让删去的边的编号的最小值最大,求这个最大的最小值. 题解 不难 ...
- bzoj 3307: 雨天的尾巴 线段树合并
题目大意: N个点,形成一个树状结构.有M次发放,每次选择两个点x,y对于x到y的路径上(含x,y)每个点发一袋Z类型的物品.问完成所有发放后,每个点存放最多的是哪种物品. 题解: 首先我们为每一个节 ...
- Maven: 自动远程部署
1. 在settings.xml中的Servers节点中增加Server的登录信息: <server> <id>deploy_server_65</id> < ...
- centos下升级mysql5.5.47到5.7.14操作过程
一. 查看已安装Mysql基础信息通过mysql –V 查看下mysql版本可以通过命令find / -name mysql 得到下面信息 1.安装目录[root@jjxnhd-192-10 mysq ...
- Trie(前缀树/字典树)及其应用
Trie,又经常叫前缀树,字典树等等.它有很多变种,如后缀树,Radix Tree/Trie,PATRICIA tree,以及bitwise版本的crit-bit tree.当然很多名字的意义其实有交 ...
- 第二课 go语言的结构
1 go 语言结构 package main import "fmt" func main() { /* 这是我的第一个简单的程序 */ fmt.Println("Hel ...
- u-boot向linux内核传递启动参数
U-BOOT 在启动内核时,会向内核传递一些参数.BootLoader 可以通过两种方法传递参数给内核,一种是旧的参数结构方式(parameter_struct),主要是 2.6 之前的内核使用的方式 ...
- 加减 script函数初识
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- Hive 进阶
两种情况下不走map-reduce: 1. where ds >' ' //ds 是partition 2. select * from table //后面没有查询条件,什么都没有 1.建表 ...
- unreal3窗口锁定鼠标开关
GameViewportClient中有个变量控制是否显示硬件鼠标: var transient bool bDisplayHardwareMouseCursor 也就是系统的光标,一般通过该类中的函 ...