📄 ejspec.htm
字号:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>GOALS</TITLE>
</HEAD>
<BODY LINK="#0000ff">
<B><FONT FACE="Arial" SIZE=6><P> </P>
</FONT></B><FONT FACE="Arial" SIZE=6><P ALIGN="CENTER"> </P>
</FONT><B><FONT FACE="Arial" SIZE=6><P> </P>
<P> </P>
<P> </P></FONT></B><DIR><FONT FACE="Arial" SIZE=6></FONT><DIR>
<FONT FACE="Arial" SIZE=6></FONT>
<DIR> <FONT FACE="Arial" SIZE=6><B>
<P>GoAhead EjScript</P>
<P>Specification</P>
</B></FONT><FONT FACE="Arial" SIZE=3>
<P>
<HR ALIGN="RIGHT" WIDTH="87%" SIZE=1>
<P></P>
<P> </P>
<P> </P>
</FONT>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR>
<DIR> <FONT FACE="Arial" SIZE=3> </FONT><FONT FACE="Arial" SIZE=2>
<P>This document defines the Specification for the GoAhead
EjScript module. </P>
<P> </P>
<P>GoAhead Confidential</P>
<P>Revision 0.1</P>
<P>Printed: April 1, 1999</P>
</FONT></DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
</DIR>
<FONT FACE="Arial" SIZE=3>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
</FONT><B><FONT FACE="Arial" SIZE=4>
<P> </P>
</FONT></B><FONT FACE="Arial" SIZE=3>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
</FONT><FONT FACE="Arial" SIZE=2>
<P>GoAhead Software, Inc</P>
<P>10900 NE 8<SUP>th</SUP> Street, #750</P>
<P>Bellevue, WA 98004</P>
</FONT></DIR>
</DIR><FONT FACE="Arial" SIZE=2>
<P>425-453-1900 </P></FONT><DIR><DIR>
<FONT FACE="Arial" SIZE=2>
<P>www.goahead.com</P>
<P>info@goahead.com</P>
<P> </P>
<P> </P>
<P><FONT FACE="Symbol">Ó</FONT>
Copyright 1999, GoAhead Software Inc. All rights reserved</P>
<P> </P>
<P>Technical and product information in this document is subject to change without notice.</P>
</FONT><FONT FACE="Arial" SIZE=3><P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P ALIGN="CENTER">Table OF Contents</P>
<P> </P></FONT></DIR>
</DIR>
</DIR><OL>
<LI>
<FONT FACE="Arial" SIZE=3>1	Introduction	</FONT><A HREF="#_Toc449942951">*</A>
<P><FONT FACE="Arial" SIZE=3>1.1	Related documents	</FONT><A HREF="#_Toc449942952">*</A></P>
<P><FONT FACE="Arial" SIZE=3>2	Naming Conventions and Definitions	</FONT><A HREF="#_Toc449942953">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3	Specification	</FONT><A HREF="#_Toc449942954">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.1	Overview	</FONT><A HREF="#_Toc449942955">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.2	Platform	</FONT><A HREF="#_Toc449942956">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3	Functionality	</FONT><A HREF="#_Toc449942957">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.1	Syntax	</FONT><A HREF="#_Toc449942958">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.2	Variables	</FONT><A HREF="#_Toc449942959">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.3	Data Types	</FONT><A HREF="#_Toc449942960">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.4	Expressions and Operators	</FONT><A HREF="#_Toc449942961">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.5	Statements	</FONT><A HREF="#_Toc449942962">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.6	Regular Expressions	</FONT><A HREF="#_Toc449942963">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.7	JavaScript in HTML	</FONT><A HREF="#_Toc449942964">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.8	Client-side Object Hierarchy	</FONT><A HREF="#_Toc449942965">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.9	Windows and Frames	</FONT><A HREF="#_Toc449942966">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.10	Forms	</FONT><A HREF="#_Toc449942967">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.11	Events	</FONT><A HREF="#_Toc449942968">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.12	Security Restrictions	</FONT><A HREF="#_Toc449942969">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.13	Global Properties	</FONT><A HREF="#_Toc449942970">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.14	Global Functions	</FONT><A HREF="#_Toc449942971">*</A></P>
<P><FONT FACE="Arial" SIZE=3>3.3.15	Objects	</FONT><A HREF="#_Toc449942972">*</A></P>
<P><FONT FACE="Arial" SIZE=3>4	C API	</FONT><A HREF="#_Toc449942973">*</A></P>
<P><FONT FACE="Arial" SIZE=3>4.1	Current C API	</FONT><A HREF="#_Toc449942974">*</A></P>
<P><FONT FACE="Arial" SIZE=3>4.1.1	Instantiate API	</FONT><A HREF="#_Toc449942975">*</A></P>
<P><FONT FACE="Arial" SIZE=3>4.1.2	Extended Capabilities API	</FONT><A HREF="#_Toc449942976">*</A></P>
<B><FONT FACE="Arial" SIZE=4><LI></LI><A NAME="_Toc449942951">Introduction</A>
</FONT></B><FONT FACE="Arial" SIZE=3><P>This document is the specification for Ej.</P>
<OL>
<LI><A NAME="_Toc449942952"></A><B>Related documents</B></LI></OL>
<P>GoAhead WebServer 1.0 Requirements</P>
<P>GoAhead WebServer 1.0 Design</P>
</FONT><LI><A NAME="_Toc449942953"></A><FONT FACE="Arial" SIZE=3></FONT><B><FONT FACE="Arial" SIZE=4>Naming Conventions and Definitions</FONT></B></LI><B><FONT FACE="Arial" SIZE=4>
<LI><A NAME="_Toc449942954">Specification</A></LI>
</FONT></B><OL><B><LI>
<A NAME="_Toc449942955"></A><FONT FACE="Arial" SIZE=4></FONT><FONT FACE="Arial" SIZE=3>Overview</FONT></LI>
</B><FONT FACE="Arial" SIZE=3><P>Ej is designed to implement a subset of JavaScript 1.1. The intent of implementing a subset is to control the code size of the script interpreter. The subset will be the functions required by other GoAhead products.</P>
<LI><A NAME="_Toc449942956"></A><B>Platform</B></LI></FONT></OL>
</OL><FONT FACE="Arial" SIZE=3><DIR>
<DIR>
<DIR>
<B>
</B><P>The Ej product is a library for the following platforms / compilers:</P></DIR>
</DIR>
</DIR>
<UL>
<UL>
<LI>Microsoft Windows NT/98/95: *.dll and *.lib</LI>
<LI>WindRiver</LI>
<LI>Unix</LI></UL>
</UL>
<OL>
<OL>
<LI><A NAME="_Toc449942957"></A><B>Functionality</B></LI><OL>
<LI>
<A NAME="_Toc449942958"><B></B>Syntax</A></LI></OL>
</OL>
</OL>
<DIR>
<DIR>
<DIR>
<P>JavaScript 1.1 compliant except</P></DIR>
</DIR>
</DIR>
<UL>
<UL>
<LI>new line is treated as white space, not statement termination.</LI>
<LI>the only keyword reserved are: var, if, else, and for.</LI></UL>
</UL>
<OL>
<OL>
<OL>
<LI></LI>
<LI><A NAME="_Toc449942959">Variables</A></LI>
<P>Each EjScript provides two variable spaces: global and local. Local Variables are declared using the var key word. From this point on in the current script any reference to the declared variable will access the local instance. An identical global instance will be unmodified. If the first assignment of a variable is without the keyword var, EjScript uses global space.</P>
<P>{</P>
<P>x = 1; 	// declares a global variable and initiates the value to 1</P>
<P>}</P>
<P>{</P>
<P>var x = 5;	// declares a local variable and initiates the value to 5.</P>
<P>// the global variable x remains 1.</P>
<P>}</P>
<P>{</P>
<P>x = x + 1;	// access the global variable and adds 1 to it.</P>
<P>		// the value is now 2.</P>
<P>}</P>
<P> </P>
<LI><A NAME="_Toc449942960">Data Types</A></LI></OL>
</OL>
</OL>
<DIR>
<DIR>
<DIR>
<P>JavaScript 1.1 compliant except</P></DIR>
</DIR>
</DIR>
<UL>
<UL>
<LI>number are 32 bit integers, not 64 bit floating point.</LI>
<LI>function: as it pertains to other JavaScript functions, this is different then global function defined in section 3.3.14.</LI>
<LI>objects</LI>
<LI>arrays</LI></UL>
</UL>
</FONT><OL><OL>
<OL>
<FONT FACE="Arial" SIZE=3>
<LI></LI>
<LI><A NAME="_Toc449942961">Expressions and Operators</A></LI></FONT>
<P ALIGN="RIGHT"><TABLE BORDER CELLSPACING=1 CELLPADDING=7 WIDTH=583>
<TR><TD WIDTH="12%" VALIGN="TOP"> </TD>
<TD WIDTH="16%" VALIGN="TOP">
<FONT FACE="Arial" SIZE=3><P ALIGN="CENTER">precedence</FONT></TD>
<TD WIDTH="16%" VALIGN="TOP">
<FONT FACE="Arial" SIZE=3><P ALIGN="CENTER">associativity</FONT></TD>
<TD WIDTH="15%" VALIGN="TOP">
<FONT FACE="Arial" SIZE=3><P ALIGN="CENTER">operator</FONT></TD>
<TD WIDTH="39%" VALIGN="TOP">
<FONT FACE="Arial" SIZE=3><P ALIGN="CENTER">operation</FONT></TD>
</TR>
<TR><TD WIDTH="12%" VALIGN="TOP"> </TD>
<TD WIDTH="16%" VALIGN="TOP">
<FONT FACE="Arial" SIZE=3><P ALIGN="CENTER">15</FONT></TD>
<TD WIDTH="16%" VALIGN="TOP"> </TD>
<TD WIDTH="15%" VALIGN="TOP">
<FONT FACE="Arial" SIZE=3><P ALIGN="CENTER">.</FONT></TD>
<TD WIDTH="39%" VALIGN="TOP">
<FONT FACE="Arial" SIZE=3><P>access an object property</FONT></TD>
</TR>
<TR><TD WIDTH="12%" VALIGN="TOP"> </TD>
<TD WIDTH="16%" VALIGN="TOP"> </TD>
<TD WIDTH="16%" VALIGN="TOP"> </TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -