- 浏览: 25184 次
- 性别:
- 来自: 北京
最新评论
-
梧栖凤:
得把未经处理的脚本分享出来啊!
跨浏览器可8方向拖拽剪裁框 -
percy30856:
好东西 正在弄这个玩意儿 参考学习了
Animate Baseclass -
percy30856:
菲哥 你的头像,应该换成未满18岁禁止查看
很棒的时间线控件 -
stoneskin:
:哭笑写javascript的也是猿。。。。我们很多猿都是从写 ...
核心只要两行即可实现添加或移除className -
jamesmos:
enix2212 写道tiannet 写道enix2212 写 ...
核心只要两行即可实现添加或移除className
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 {}
}
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 {}
}
发表评论
-
[javascript]9宫格拖拽拼图游戏 puzzle
2012-04-29 09:51 16341.跨浏览器,主流浏览器都可以运行2.纯javascript开 ... -
避免悲剧 密码生成器
2011-12-22 15:35 783最近被暴库的很多,密码安全成为重大问题!如何避免简单密码呢?还 ... -
jQuery创建实例与原型继承揭秘
2011-12-20 23:57 806在普通情况下 ... -
[Javascript]单例模式(singleton )
2011-12-16 15:23 1356Javascript中大家都很习惯用new运算符创建实例。现在 ... -
javascript1.7新语法
2011-12-13 18:30 9151.yield 关键字 Yield的作用与return 差不多 ... -
javascript undo redo
2011-12-09 10:55 2418在浏览器中用调试工具看调用结果 <!DOCTYPE ... -
duffsDevice 高速版
2011-11-25 17:21 832function duffsDevice(items, f ... -
仅限正整数输入
2011-10-27 15:35 905修正了拖拽文本进输入框问题 2011.11.14 &l ... -
Another JavaScript quiz
2011-08-19 18:34 680测试题来自《Another JavaScript quiz》P ... -
跨浏览器可8方向拖拽剪裁框
2011-08-15 20:01 954<!DOCTYPE html PUBLIC &quo ... -
选项卡
2011-08-12 17:36 928<!DOCTYPE html PUBLIC &quo ... -
scroll base
2011-08-04 14:25 931开发版,水平方向已完成,垂直方向没测,可以跨浏览,滚动多个当前 ... -
拖拽排序列表单例
2011-07-27 11:17 1209<!DOCTYPE html PUBLIC &quo ... -
Animate Baseclass
2011-07-12 15:47 1239以下代码仅供参考,请下载附件代码,应该是文本编辑器过滤掉了某些 ... -
很棒的时间线控件
2011-06-24 18:52 1737原生态javascript,希望大家能喜欢 functio ... -
fade方法
2011-05-27 10:12 812function fadeOut(steps){ ... -
核心只要两行即可实现添加或移除className
2011-04-29 11:10 1804<div id="abc" cl ... -
让函数有记忆能力
2011-04-28 15:34 725function addEvent(elem,evType ... -
可以跳动的手风琴 Accordion
2011-04-13 15:02 823<!DOCTYPE html PUBLIC &q ... -
javascript new 关键字的运行原理
2011-04-06 17:33 1572function javascriptNew(t){ a= ...
相关推荐
JavaScript,简称JS,是一种广泛应用于Web开发的轻量级编程语言,主要分为三个核心组成部分:ECMAScript、DOM(Document Object Model)和BOM(Browser Object Model)。本篇文档主要聚焦于ECMAScript,它是JS的标准...
《JavaScript权威指南-ECMAScript5.pdf》这本书深入浅出地介绍了JavaScript的核心概念和语法,为初学者和有经验的开发者提供了全面的指导。以下是一些主要的知识点: 1. **变量与数据类型**:JavaScript是动态类型...
ECMAScript.next :通过的量子时间旅行魔法,当今的下一代 JavaScript 功能。 模块化:每个包都启用了 traceuroso,因此它不会与您的包的依赖项或依赖于您的包的包冲突。 没有构建步骤:在编辑和运行代码之间没有...
本文将围绕“heatmap.js”和“CesiumHeatmap.js”这两个JavaScript库,探讨它们如何帮助开发者创建动态、交互式的热力图,并结合标签中的“javascript”、“ecmascript”和“前端”知识点进行深入讲解。 1. **...
PDF.js 是一个开源的 JavaScript 库,由 Mozilla 维护,用于在 web 浏览器中渲染 PDF 文档。这个库的主要目标是提供一个纯前端的解决方案,使得用户无需依赖 Adobe Reader 或其他本地插件就能在线查看 PDF 文件。...
2. **JavaScript与ECMAScript**: - JavaScript是一种广泛用于网页和网络应用的脚本语言,它的最新版本由ECMAScript规范定义。 - ECMAScript 6(ES6)及以上版本引入了许多新特性,如类、箭头函数、模板字符串等,...
Rhino的核心特性在于其对ECMAScript规范的全面支持,这使得JavaScript代码能够在Java环境中无缝执行。1.7.2版本发布于2009年,虽然相对较旧,但仍然包含了许多关键的JavaScript语言特性,如函数、对象、数组、正则...
`bignumber.js_v9.0.2`是这样一个高效、易用的JavaScript库,它提供了处理大数的能力,确保了计算的精确性。 ### 一、JavaScript的Number类型限制 JavaScript的Number类型实际上是一种IEEE 754双精度浮点数,它...
hls.js是一个JavaScript库,可实现HTTP Live Streaming客户端。...它通过将MPEG-2传输流和AAC / MP3流转换为ISO BMFF(MP4)片段来工作。...hls.js用ECMAScript6编写,并使用Babel在ECMAScript5中转译。
eslevels, 在escope库上,基于 ECMAScript EsLevels基于 escope 库的ECMAScript范围级分析器。 这个库的最初目的是在javascript编辑器的( 。对于 SublimeText,按顺序排序) 中启用范围上下文着色。库只有一个方法 le
本文将围绕这个主题,详细介绍AUTO.JS的核心功能、JavaScript与ECMAScript在其中的作用,以及如何利用这个平台进行移动设备的开发。 1. **JavaScript与ECMAScript**:JavaScript是一种广泛用于网页和网络应用的编程...
flv.js 是使用 ECMAScript 6 编写的,然后通过 Babel Compiler 编译成 ECMAScript 5,使用 Browserify 打包。 功能: FLV 容器,具有 H.264 + AAC 编解码器播放功能 多部分分段视频播放 HTTP FLV 低延迟实时流...
1. 服务器端脚本:Rhino引擎常被用于服务器端脚本环境,如Apache服务器上的JServ,或是用于Node.js的前身,使JavaScript可以处理HTTP请求、数据库操作等后端任务。 2. 测试框架:Rhino可用于自动化测试,如Selenium...
**ueditor富文本编辑器详解** ueditor是一款广泛应用于网页前端开发中的富文本编辑器,由百度公司...结合JavaScript和ECMAScript,ueditor为前端开发者提供了一个高效的文本处理工具,提升了网页的交互性和用户体验。
`viewer.js`库基于ECMAScript,因此它兼容现代浏览器,同时也考虑到了对旧版本JavaScript的支持。它的核心特性包括: 1. **响应式设计**:`viewer.js`能够自动适应不同的设备和屏幕尺寸,确保在手机、平板和桌面...
Three.js库利用WebGL技术,这是一种JavaScript API,允许硬件加速的3D图形渲染,无需安装任何插件。通过Three.js,开发者可以创建出丰富的3D应用程序,包括仓库可视化管理系统。 仓库可视化管理系统的核心目标是...
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压缩包
- **ECMAScript**:ECMAScript(简称ES)是JavaScript的标准化规范,定义了语言的语法和语义。随着每年的版本更新,如ES6(ES2015)、ES7(ES2016)等,JavaScript增加了许多新特性,如箭头函数、类、模板字符串等。...