JavaScript Lib Interface (JavaScript系统定义的接口一览表)
function Object(){};
Object.prototype.toString = function(){return "";};
Object.prototype.toLocaleString = function(){return "";};
Object.prototype.valueOf = function(){return new Object();};
Object.prototype.hasOwnProperty = function(name){return true;};
Object.prototype.isPrototypeOf = function(o){return true;};
Object.prototype.propertyIsEnumerable = function(name){return true;};
Object.prototype.constructor = new Function();
function String(){}
String.prototype = new Object();
String.fromCharCode = function(charCode){return "";};
String.prototype.length = 1;
String.prototype.charAt = function(position){return "";};
String.prototype.charCodeAt = function(position){return 0;};
String.prototype.concat = function(value){return "";};
String.prototype.indexOf = function(searchString, startPosition){return 1;};
String.prototype.lastIndexOf = function(searchString, startPosition){return 1;};
String.prototype.localeCompare = function(otherString){return 0;};
String.prototype.match = function(regexp){return [];};
String.prototype.replace = function(regexp, replaceValue){return "";};
String.prototype.search = function(regexp){return 1;};
String.prototype.slice = function(start, end){return "";};
String.prototype.split = function(separator, limit){return [];};
String.prototype.substring = function(start, end){return "";};
String.prototype.toLowerCase = function(){return "";};
String.prototype.toLocaleLowerCase = function(){return "";};
String.prototype.toUpperCase= function (){return "";};
String.prototype.toLocaleUpperCase = function(){return "";};
function Number(){}
Number.prototype = new Object();
Number.MIN_VALUE = 0;
Number.MAX_VALUE = 0 ;
Number.NaN = 0;
Number.NEGATIVE_INFINITY = 0;
Number.POSITIVE_INFINITY = 0;
Number.prototype.toFixed = function(fractionDigits){return "";};
Number.prototype.toExponential = function(fractionDigits){return "";};
Number.prototype.toPrecision = function(fractionDigits){return "";};
function Boolean(){};
Boolean.prototype = new Object();
function Array(){};
Array.prototype = new Object();
Array.prototype.length = 1;
Array.prototype.concat = function(args){return [];};
Array.prototype.join = function(seperator){return [];};
Array.prototype.pop = function(){return new Object();};
Array.prototype.push = function(args){};
Array.prototype.reverse = function(){return [];};
Array.prototype.shift = function(){return new Object();};
Array.prototype.slice = function(start, end){return [];};
Array.prototype.sort = function(funct){return [];};
Array.prototype.splice = function(start, deletecount, items){return [];};
Array.prototype.unshift = function(start){return [];};
function Function(){};
Function.prototype = new Object();
Function.prototype.apply = function(thisArg, argArray){return new Object();};
Function.prototype.call = function(thisObject, args){return new Object();};
Function.prototype.length = 0;
function Date(s){};
Date.prototype = new Object();
Date.UTC = function(hour, min, sec, ms){return 0;};
Date.parse = function(string){return 0;};
Date.prototype.toDateString = function(){return "";};
Date.prototype.toTimeString = function(){return "";};
Date.prototype.toLocaleString = function(){return "";};
Date.prototype.toLocaleDateString = function(){return "";};
Date.prototype.toLocaleTimeString = function(){return "";};
Date.prototype.valueOf = function(){return new Object();};
Date.prototype.getFullYear = function(){return 0;};
Date.prototype.getTime = function(){return 0;};
Date.prototype.getUTCFullYear = function(){return 0;};
Date.prototype.getMonth = function(){return 0;};
Date.prototype.getUTCMonth = function(){return 0;};
Date.prototype.getDate = function(){return 0;};
Date.prototype.getUTCDate = function(){return 0;};
Date.prototype.getDay = function(){return 0;};
Date.prototype.getUTCDay=function(){return 0;};
Date.prototype.getHours = function(){return 0;};
Date.prototype.getUTCHours = function(){return 0;};
Date.prototype.getMinutes = function(){return 0;};
Date.prototype.getUTCMinutes = function(){return 0;};
Date.prototype.getSeconds = function(){return 0;};
Date.prototype.getUTCSeconds = function(){return 0;};
Date.prototype.getMilliseconds = function(){return 0;};
Date.prototype.getUTCMilliseconds = function(){return 0;};
Date.prototype.getTimezoneOffset = function(){return 0;};
Date.prototype.setTime = function(value){return 0;};
Date.prototype.setMilliseconds = function(value){return 0;};
Date.prototype.setUTCMilliseconds = function(ms){return 0;};
Date.prototype.setSeconds = function(sec,ms){return 0;};
Date.prototype.setUTCSeconds=function(sec,ms){return 0;};
Date.prototype.setMinutes=function(min,sec,ms){return 0;};
Date.prototype.setUTCMinute = function(min,sec,ms){return 0;};
Date.prototype.setHours = function(hour,min,sec,ms){return 0;};
Date.prototype.setUTCHours = function(hour,min,sec,ms){return 0;};
Date.prototype.setDate = function(date){return 0;};
Date.prototype.setUTCDate = function(date){return 0;};
Date.prototype.setMonth = function(month,date){return 1;};
Date.prototype.setUTCMonth = function(month,date){return 1;};
Date.prototype.setFullYear = function(year, month,date){return 0;};
Date.prototype.setUTCFullYear = function(year, month,date){};
Date.prototype.toUTCString = function(){return "";};
function Global(){};
Global.prototype=new Object();
Global.prototype.NaN=0;
Global.prototype.Infinity=0;
Global.prototype.eval=function(s){return new Object();};
Global.prototype.debugger=null;
Global.prototype.undefined=null;
Global.prototype.parseInt=function(s,radix){return 0;};
Global.prototype.parseFloat=function(s){return 0;};
Global.prototype.escape=function(s){return "";};
Global.prototype.unescape=function(s){return "";};
Global.prototype.isNaN=function(number){return false;};
Global.prototype.isFinite=function(number){return false;};
Global.prototype.decodeURI=function(encodedURI){return "";};
Global.prototype.decodeURIComponent=function(uriComponent){return "";};
Global.prototype.encodeURIComponent=function(uriComponent){return "";};
Global.prototype.encodeURI=function(URI){return "";};
function Math(){};
Math.prototype=new Object();
Math.E=0;
Math.LN10=0;
Math.LN2=0;
Math.LOG2E=0;
Math.LOG10E=0;
Math.PI=0;
Math.SQRT1_2=0;
Math.SQRT2=0;
Math.abs=function(x){return 0;};
Math.acos=function(x){return 0;};
Math.asin=function(x){return 0;};
Math.atan=function(x){return 0;};
Math.atan2=function(x,y){return 0;};
Math.ceil=function(x){return 0;};
Math.cos=function(x){return 0;};
Math.exp=function(x){return 0;};
Math.floor=function(x){return 0;};
Math.log=function(x){return 0;};
Math.max=function(args){return 0;};
Math.min=function(args){return 0;};
Math.pow=function(x,y){return 0;};
Math.random=function(){return 0;};
Math.round=function(x){return 0;};
Math.sin=function(x){return 0;};
Math.sqrt=function(x){return 0;};
Math.tan=function(x){return 0;};
function RegExp(){};
RegExp.prototype=new Object();
RegExp.prototype.exec=function(string){return [];};
RegExp.prototype.test=function(string){return false;};
RegExp.prototype.source="";
RegExp.prototype.global=false;
RegExp.prototype.ignoreCase=false;
RegExp.prototype.multiline=false;
RegExp.prototype.lastIndex=0;
function Error(message){};
Error.prototype=new Object();
Error.prototype.name="";
Error.prototype.message="";
function EvalError(){};
EvalError.prototype=new Error("");
function RangeError(){};
RangeError.prototype=new Error("");
function ReferenceError(){};
ReferenceError.prototype=new Error("");
function SyntaxError(){};
SyntaxError.prototype=new Error("");
function TypeError(){};
TypeError.prototype=new Error("");
function URIError(){};
URIError.prototype=new Error("");
var debugger = null;
JavaScript Lib Interface (JavaScript系统定义的接口一览表)的更多相关文章
- 设计模式之Programming to an Interface, not anImplementation 程序指向接口,而不是实现
Class inheritance is basically just a mechanism for extending an application's functionality by reus ...
- JavaScript 和 TypeScript 交叉口 —— 类型定义文件(*.d.ts)
在 <从 JavaScript 到 TypeScript 系列> 文章我们已经学习了 TypeScript 相关的知识. TypeScript 的核心在于静态类型,我们在编写 TS 的时候 ...
- 基于类(Java)和基于原理(JavaScript)的对象系统的比较
Java:面向对象编程语言,吸收了C++语言的各种优点,丢掉了C++让人头疼的多继承.指针等概念.具有功能强大和简单易用的两大特征.Java具有简单性.面向对象.分布式.健壮性.安全性.平台独立与可移 ...
- JavaScript学习12 JS中定义对象的几种方式
JavaScript学习12 JS中定义对象的几种方式 JavaScript中没有类的概念,只有对象. 在JavaScript中定义对象可以采用以下几种方式: 1.基于已有对象扩充其属性和方法 2.工 ...
- Javascript中函数及变量定义的提升
<html> <head> <title>函数提升</title> <script language="javascript" ...
- Javascript Jquery 中的数组定义与操作_子木玲_新浪博客
body{ font-family: "Microsoft YaHei UI","Microsoft YaHei",SimSun,"Segoe UI& ...
- JavaScript学习12 JS中定义对象的几种方式【转】
avaScript学习12 JS中定义对象的几种方式 转自: http://www.cnblogs.com/mengdd/p/3697255.html JavaScript中没有类的概念,只有对象. ...
- JavaScript中var和this定义变量的区别
JavaScript中var和this定义变量的区别 在js中声明变量时可以使用var和this,但使用this的有很大一部分参考书是没有的,经过查阅相关资料总结如下: 用var和this声明变量,存 ...
- 如何定义一个接口(接口Interface只在COM组件中定义了,MFC和C++都没有接口的概念)
接口是COM中的关键词,在c++中并没有这个概念.接口是一种极度的抽象.接口用在COM组件中有自己的GUID值,因此定义接口时一定要指定它的GUID值. 实际上接口就是struct,即#define ...
随机推荐
- poj-2236-Wireless Network
Wireless Network Time Limit: 10000MS Memory Limit: 65536K Total Submissions: 24155 Accepted: 100 ...
- Android提升篇系列:Android项目代码优化实践
Android开发中,不同的开发团队,不同的开发人员,在实际编码中会有一些不同的地方.但是,具有一定的更普适性的编码习惯,无疑还是相当重要的.本文主要罗列项目中常见的一些编码片段,并给出相关建议. 1 ...
- PHP 导出Excel 文档
下面是总结的几个使用方法 include 'PHPExcel.php'; include 'PHPExcel/Writer/Excel2007.php'; //或者include 'PHPExcel/ ...
- C# 7个读写Excel文件的类库
转载自:http://www.cnblogs.com/wintersun/archive/2013/02/26/2933294.html 有时我们在项目需要操作Excel文件,读或写,导出数据等. ...
- js的动态加载、缓存、更新以及复用(一)
使用范围: OA.MIS.ERP等信息管理类的项目,暂时不考虑网站. 遇到的问题: 完成一个项目,往往需要引用很多js文件,比如jQuery.js.easyUI等.还有自己写的一些列js文件,那么这些 ...
- Code First :使用Entity. Framework编程(3) ----转发 收藏
第三章 对属性使用约定和配置 在第2章,对Code First的约定以及如何通过配置覆写默认约定行为进行了大致的介绍.学习了如何使用Data Annotations进行配置,也学习了如何使用Fluen ...
- 使用 FocusPoint.js 实现图片的响应式裁剪
通常网站的布局都不是单一的.例如图像在电脑.平板和智能手机上可能显示的形状是不同的.特别是如果你使用的是全屏图像,在你必须使用相同的图像文件的情况下,你的主题可能会被截断或完全缺失,或者看起来很尴尬. ...
- MaterialUp - 寻找材料设计灵感必备的网站
MaterialUp 是一个展示最好的材料设计 APP,网站和概念的地方,每天都会更新.每款设计都精心挑选,展示那些有才华的设计师的伟大工作. MaterialUp 的核心价值是让尽可能多的设计师提供 ...
- CSS中!important的作用
提升指定样式规则的应用优先权. IE6及以下浏览器有个比较显式的支持问题存在,!important在同一条规则集里不生效.请看下述代码: 示例代码: div { color: #f00 !import ...
- scroll事件实现监控滚动条并分页显示示例(zepto.js)
scroll事件实现监控滚动条并分页显示示例(zepto.js ) 需求:在APP落地页上的底部位置显示此前其他用户的购买记录,要求此div盒子只显示3条半,但一页有10条,div内的滑动条滑到一页 ...