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相关的数据 ...
随机推荐
- html中Meta属性
<!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 --> <html lang="zh-cmn-Hans"&g ...
- C语言访问MCU寄存器的两种方式
转自http://blog.csdn.net/liming0931/article/details/7752248 单片机的特殊功能寄存器SFR,是SRAM地址已经确定的SRAM单元,在C语言环境下对 ...
- POJ1456:Supermarket
浅谈堆:https://www.cnblogs.com/AKMer/p/10284629.html 题目传送门:http://poj.org/problem?id=1456 把物品按照时间排序,显然\ ...
- 文件上传框的美化+预览+ajax
1.文件上传基本写法: <input type="file" name="" id="" value="" /&g ...
- UILabel UiButton 文字下面加下划线
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"直接进入" ...
- Poj1218_THE DRUNK JAILER(水题)
一.Description A certain prison contains a long hall of n cells, each right next to each other. Each ...
- 如何在windows 2003(虚拟主机)上面部署MVC3
相信有很多朋友和我一样遇到了这个问题,网上大牛说的都不是很清楚,关于这个问题我详细的跟进一下 这个问题呢大致分为两种情况 一.有服务器的控制权限,这个就简单很多, 1.安装mvc3支持组件2.如果可以 ...
- web攻击之六:DNS攻击原理与防范
随着网络的逐步普及,网络安全已成为INTERNET路上事实上的焦点,它关系着INTERNET的进一步发展和普及,甚至关系着INTERNET的生存.可喜的是我们那些互联网专家们并没有令广大INTERNE ...
- 发布倒计时!JDK11为我们带来哪些新特性?
今年7月底,JDK11已经进入了Rampdown Phase Two阶段,这标志着该版本所有特性已经被冻结,不会有新的JEP会加入版本中. 这一阶段将会修复P1–P2级BUG,之后,JDK11预定于今 ...
- Math(2)
Math(2) public static void main(String[] args) { System.out.println(Math.floor(-32.8)); //常数 System. ...