`
enix2212
  • 浏览: 25184 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

ECMAScript.js2

阅读更多
package {
public native function eval(x:Object):Object;
public native function parseInt(string:String, radix:int = 10):Number;
public native function parseFloat(string:String):Number;
public native function isNaN(number:Number):Boolean;
public native function get NaN():Number;
public native function isFinite(number:Number):Boolean;
public native function decodeURI(encodedURI:String):String;
public native function decodeURIComponent(encodedURIComponent:String):String;
public native function get Infinity():Number;
public native function encodeURI(uri:String):Number;
public native function encodeURIComponent(uriComponent:String):Number;
public native var undefined:*;

public dynamic class Object {
  public native function get constructor():*;
  public native function set constructor(o:*):void;
  public native function get length():Number;
  public native function set length(n:Number):void;
  public native function get prototype():Object;
  public native function set prototype(o:Object):void;

  public native function toLocaleString():Object;

  public native function toSource():Object;
  public native function unwatch(prop:String):void;
  public native function watch(prop:String, handler:Object):void;
  public native function valueOf(o:Object):String;

  public native function hasOwnProperty(propertyName:String):Boolean;
  public native function isPrototypeOf(o:Object):Boolean;
  public native function propertyIsEnumerable(propertyName:String):Boolean;

  public native function toString():String;
}

public dynamic class Array extends Object {
  native public function Array(... rest):*;
  public native function get index():Number;
  public native function get input():Number;
  public native function concat(... items):Array;
  public native function join(separator:String):String;
  public native function pop():*;
  public native function push(... items):void;
  public native function reverse():Array;
  public native function shift():*;

  native AS3 function slice(start:Number = 0, end:Number = Number.MAX_VALUE):Array;
  public native function sort(comparefn:Function = null):void;
  public native function splice(start:Number,deleteCount:Number, ... items):*;
  public native function unshift(... items):uint;
  public native function get length():uint;
  private static const AS3:* = "http://adobe.com/AS3/2006/builtin";
}

public class Boolean extends Object {}

public dynamic class Date extends Object {
  public native function Date(... rest);
  public native function getDate():Number;
  public native function getDay():Number;
  public native function getMonth():Number;
  public native function getFullYear():Number;
  public native function getHours():Number;

  public native function getMilliseconds():Number;
  public native function getMinutes():Number;
  public native function getSeconds():Number;
  public native function getTime():Number;
  public native function getTimezoneOffset():Number;

  public native function getUTCDate():Number;
  public native function getUTCDay():Number;
  public native function getUTCFullYear():Number;
  public native function getUTCHours():Number;
  public native function getUTCMilliseconds():Number;
  public native function getUTCMinutes():Number;

  public native function getUTCMonth():Number;
  public native function getUTCSeconds():Number;
  public native function getYear():Number;
  public static native function parse(s:*):Date;
  public native function setDate(date:*):void;

  public native function setFullYear(year:Number, month: Number = 1, date: Number = 1):void;
  public native function setHours(hour:Number, min: Number = 1, sec: Number = 1, ms:Number = 1):void;
  public native function setMilliseconds(ms: Number):void;

  public native function setMinutes(min: Number, sec: Number = 1, ms:Number = 1):void;
  public native function setMonth(month: Number, date: Number = 1):void;
  public native function setSeconds(sec: Number, ms:Number = 1):void;

  public native function setTime(time: Number):void;
  public native function setUTCDate(date: Number):void;
  public native function setUTCFullYear(year:Number, month: Number = 1, date: Number = 1):void;
  public native function setUTCHours(hour:Number, min: Number = 1, sec: Number = 1, ms:Number = 1):void;

  public native function setUTCMilliseconds(ms: Number):void;
  public native function setUTCMinutes(min: Number, sec: Number = 1, ms:Number = 1):void;
  public native function setUTCMonth(month: Number, date: Number = 1):void;
  public native function setUTCSeconds(sec: Number, ms:Number = 1):void;

  public native function setYear(year: Number):void;
  public native function toGMTString():String;
  public native function toLocaleDateString():String;
  public native function toLocaleTimeString():String;
  public native function toDateString():String;

  public native function toTimeString():String;
  public native function toUTCString():String;
  public native static function UTC(year:Number, month:Number, date:Number = 1, hours:Number = 1, minutes:Number = 1, seconds:Number = 1, ms:Number = 1):String;
}

class Arguments extends Array {
  public native function get callee():Function;
  public native function set callee(value:Function):void;
  [Deprecated(message="Property caller is obsolete")]
  public native function get caller():Function;
}

public dynamic class Function extends Object {
  public native function get arguments():Arguments;
  public native function get arity():Number;
  public native function apply(thisArg:Object, argArray:Arguments = null):Object;
  public native function call(thisArg:Object, ...args):Object;
}

public class Math extends Object {
  public native static const E:Number;
  public native static const LN10:Number;
  public native static const LN2:Number;
  public native static const LOG10E:Number;
  public native static const LOG2E:Number;

  public native static const PI:Number;
  public native static const SQRT1_2:Number;
  public native static const SQRT2:Number;

  public native static function abs(x:Number):Number;
  public native static function acos(x:Number):Number;
  public native static function asin(x:Number):Number;
  public native static function atan(x:Number):Number;
  public native static function atan2(y:Number, x:Number):Number;

  public native static function ceil(value:Number):Number;
  public native static function cos(x:Number):Number;
  public native static function exp(x:Number):Number;
  public native static function floor(x:Number):Number;
  public native static function log(x:Number):Number;
  public native static function max(... x/*Number*/):Number;
  public native static function min(... x/*Number*/):Number;

  public native static function pow(x:Number, y:Number):Number;
  public native static function random():Number;
  public native static function round(x:Number):Number;
  public native static function sin(x:Number):Number;
  public native static function sqrt(x:Number):Number;
  public native static function tan(x:Number):Number;
}
       
public class Number extends Object {
  public static native function get MAX_VALUE():Number
  public static native function get MIN_VALUE():Number
  public static native function get NaN():Number
  public static native function get Infinity():Number
  public static native function get NEGATIVE_INFINITY():Number
  public static native function get POSITIVE_INFINITY():Number

  public native function toExponential(fractionalDigits:Number):String;
  public native function toFixed(fractionalDigits:Number):String;
  public native function toPrecision(precision:Number):String;
  public native function toString(radix:Number = 10):String;
}

public dynamic class RegExp extends Object {
  public native function RegExp(pattern:String = null, options:String = null);
  public native function get global():Boolean;
  public native function get ignoreCase():Boolean;
  public native function get lastIndex():Number;
  public native function set lastIndex(n:Number):void;

  public native static function get leftContext():String;
  public native static function get input():String;
  public native static function get lastParen():String;
  public native static function get lastMatch():String;
  public native static function get rightContext():String;

  public native function get multiline():Boolean;
  public native function get source():String;

  public native static function get $1():String;
  public native static function get $2():String;
  public native static function get $3():String;
  public native static function get $4():String;
  public native static function get $5():String;

  public native function exec(string:String):*;
  public native function test(string:String):Boolean;
}

public class String extends Object {
  public native function anchor(nameAttribute:String):String;
  public native function big():String;
  public native function blink():String;
  public native function bold():String;
  public native function charAt(pos:Number):String;
  public native function charCodeAt(pos:Number):Number;

  public native function concat(...strings):String;
  public native function fixed():String;
  public native function fontcolor(color:String):String;
  public native function fontsize(size:Number):String;
  public static native function fromCharCode(... chars):String;
  public native function indexOf(searchString:String, position:Number = -1):Number;

  public native function italics():String;
  public native function lastIndexOf(searchString:String, position:Number = -1):Number;
  native public function get length():int;
  public native function link(href:String):String;
  public native function localeCompare(that:String):Boolean;
  public native function match(regexp:RegExp):Boolean;
  public native function replace(searchValue:*, replaceValue:*):String;

  public native function search(regexp:*):int;
  public native function slice(start:Number, end:Number = Number.MAX_VALUE):String;
  public native function small():String;
  public native function split(separator:*, limit:Number = -1):Array;
  public native function strike():String;
  public native function sub():String;

  public native function substr(start:Number, length:Number = -1):String;
  public native function substring(start:Number, end:Number = -1):String;
  public native function sup():String;
  public native function toLowerCase():String;
  public native function toLocaleLowerCase():String;
  public native function toLocaleUpperCase():String;
  public native function toUpperCase():String;
}

public dynamic class Error extends Object {
  public native function Error(msg:*="", id:*=0);
  public var name:String;
  public native function get message():String;
  native AS3 function getStackTrace():String;
}

public class EvalError extends Error {}
public class RangeError extends Error {}
public class ReferenceError extends Error {}
public class SyntaxError extends Error {}
public class TypeError extends Error {}
public class URIError extends Error {}
}
分享到:
评论

相关推荐

    JS-ECMAScript.docx

    JavaScript,简称JS,是一种广泛应用于Web开发的轻量级编程语言,主要分为三个核心组成部分:ECMAScript、DOM(Document Object Model)和BOM(Browser Object Model)。本篇文档主要聚焦于ECMAScript,它是JS的标准...

    JavaScript权威指南-ECMAScript5.pdf

    《JavaScript权威指南-ECMAScript5.pdf》这本书深入浅出地介绍了JavaScript的核心概念和语法,为初学者和有经验的开发者提供了全面的指导。以下是一些主要的知识点: 1. **变量与数据类型**:JavaScript是动态类型...

    traceuroso:无需任何构建步骤即可编写和运行 ECMAScript.next Node.js 包

    ECMAScript.next :通过的量子时间旅行魔法,当今的下一代 JavaScript 功能。 模块化:每个包都启用了 traceuroso,因此它不会与您的包的依赖项或依赖于您的包的包冲突。 没有构建步骤:在编辑和运行代码之间没有...

    heatmap.js、CesiumHeatmap.js

    本文将围绕“heatmap.js”和“CesiumHeatmap.js”这两个JavaScript库,探讨它们如何帮助开发者创建动态、交互式的热力图,并结合标签中的“javascript”、“ecmascript”和“前端”知识点进行深入讲解。 1. **...

    pdf.js 文件 最新版本

    PDF.js 是一个开源的 JavaScript 库,由 Mozilla 维护,用于在 web 浏览器中渲染 PDF 文档。这个库的主要目标是提供一个纯前端的解决方案,使得用户无需依赖 Adobe Reader 或其他本地插件就能在线查看 PDF 文件。...

    turn.js 模拟书籍翻页

    2. **JavaScript与ECMAScript**: - JavaScript是一种广泛用于网页和网络应用的脚本语言,它的最新版本由ECMAScript规范定义。 - ECMAScript 6(ES6)及以上版本引入了许多新特性,如类、箭头函数、模板字符串等,...

    org.mozilla.javascript-1.7.2.jar

    Rhino的核心特性在于其对ECMAScript规范的全面支持,这使得JavaScript代码能够在Java环境中无缝执行。1.7.2版本发布于2009年,虽然相对较旧,但仍然包含了许多关键的JavaScript语言特性,如函数、对象、数组、正则...

    js库bignumber.js_v9.0.2

    `bignumber.js_v9.0.2`是这样一个高效、易用的JavaScript库,它提供了处理大数的能力,确保了计算的精确性。 ### 一、JavaScript的Number类型限制 JavaScript的Number类型实际上是一种IEEE 754双精度浮点数,它...

    hls.js-master_hls.js_hlsjs_mediasource_mp3播放器_

    hls.js是一个JavaScript库,可实现HTTP Live Streaming客户端。...它通过将MPEG-2传输流和AAC / MP3流转换为ISO BMFF(MP4)片段来工作。...hls.js用ECMAScript6编写,并使用Babel在ECMAScript5中转译。

    eslevels, 在escope库上,基于 ECMAScript.zip

    eslevels, 在escope库上,基于 ECMAScript EsLevels基于 escope 库的ECMAScript范围级分析器。 这个库的最初目的是在javascript编辑器的( 。对于 SublimeText,按顺序排序) 中启用范围上下文着色。库只有一个方法 le

    AUTO.JS v4.1.1 纯净

    本文将围绕这个主题,详细介绍AUTO.JS的核心功能、JavaScript与ECMAScript在其中的作用,以及如何利用这个平台进行移动设备的开发。 1. **JavaScript与ECMAScript**:JavaScript是一种广泛用于网页和网络应用的编程...

    flv.min.js脚本

    flv.js 是使用 ECMAScript 6 编写的,然后通过 Babel Compiler 编译成 ECMAScript 5,使用 Browserify 打包。 功能: FLV 容器,具有 H.264 + AAC 编解码器播放功能 多部分分段视频播放 HTTP FLV 低延迟实时流...

    org.mozilla.javascript-1.7.2.jar.zip

    1. 服务器端脚本:Rhino引擎常被用于服务器端脚本环境,如Apache服务器上的JServ,或是用于Node.js的前身,使JavaScript可以处理HTTP请求、数据库操作等后端任务。 2. 测试框架:Rhino可用于自动化测试,如Selenium...

    本资源为ueditor富文本编辑器压缩包,里面包含ueditor.all.min.js等文件,有需要的读者可以自行下载。

    **ueditor富文本编辑器详解** ueditor是一款广泛应用于网页前端开发中的富文本编辑器,由百度公司...结合JavaScript和ECMAScript,ueditor为前端开发者提供了一个高效的文本处理工具,提升了网页的交互性和用户体验。

    viewer.js图片放大缩小使用的js

    `viewer.js`库基于ECMAScript,因此它兼容现代浏览器,同时也考虑到了对旧版本JavaScript的支持。它的核心特性包括: 1. **响应式设计**:`viewer.js`能够自动适应不同的设备和屏幕尺寸,确保在手机、平板和桌面...

    基于 Three.js 的仓库可视化管理系统源码.zip

    Three.js库利用WebGL技术,这是一种JavaScript API,允许硬件加速的3D图形渲染,无需安装任何插件。通过Three.js,开发者可以创建出丰富的3D应用程序,包括仓库可视化管理系统。 仓库可视化管理系统的核心目标是...

    jquery.tools.min.js 最新的1.2.7版本

    jquery.tools.min.js 最新的1.2.7版本 jquery.min.js是压缩版的jquery库,是由完整版的jQuery库经过压缩得来,压缩后功能与未压缩的完全一样,只是将其中的空白字符、注释、空行等与逻辑无关的内容删除,并进行一些...

    javascript库pdfjs-1.8.188.js压缩包

    javascript库pdfjs-1.8.188.js压缩包javascript库pdfjs-1.8.188.js压缩包javascript库pdfjs-1.8.188.js压缩包

    vue.js-devtools_5.1.1解压后 在浏览器扩展程序直接加载已解压 即可使用

    - **ECMAScript**:ECMAScript(简称ES)是JavaScript的标准化规范,定义了语言的语法和语义。随着每年的版本更新,如ES6(ES2015)、ES7(ES2016)等,JavaScript增加了许多新特性,如箭头函数、类、模板字符串等。...

Global site tag (gtag.js) - Google Analytics