• 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;
    

      

  • 相关阅读:
    3.redis认证
    2.redis-help使用,基本命令
    安卓使用merge标签和include优化UI布局
    安卓数据存储之ContentProvider
    安卓数据存储之SQLLite
    安卓数据存储之SharePreference
    安卓数据存储之sdcard存储
    java解析json之gjson和fastjson
    Android Volley完全解析(一),初识Volley的基本用法
    使用Pull解析Xml文件
  • 原文地址:https://www.cnblogs.com/f1194361820/p/3673174.html
Copyright © 2020-2023  润新知