⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ms jscript.def

📁 是一个很好的编辑器
💻 DEF
📖 第 1 页 / 共 2 页
字号:
[toGMTString | Returns a date converted to a string using Greenwich Mean Time(GMT)]
toGMTString()|
[toLocaleString | Returns a date converted to a string using the current locale]
toLocaleString()|
[toLowerCase | Returns a string where all alphabetic characters have been converted to lowercase]
toLowerCase()|
[toString | Returns a string representation of an object]
toString(|[radix])
[toUpperCase | Returns a string where all alphabetic characters have been converted to uppercase]
toUpperCase()|
[toUTCString | Returns a date converted to a string using Universal Coordinated Time (UTC)]
toUTCString()|
[ubound | Returns the highest index value used in the specified dimension of the VBArray]
ubound(|dimension)
[unescape | Decodes String objects encoded with the escape method]
unescape(|charstring)
[UTC | Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date]
Date.UTC(|year, month, day[, hours[, minutes[, seconds[,ms]]]])
[valueOf | Returns the primitive value of the specified object]
valueOf()|
[Write | Writes a specified string to a TextStream file]
Write(|string)
[WriteBlankLines | Writes a specified number of newline characters to a TextStream file]
WriteBlankLines(|lines)
[WriteLine | Writes a specified string and newline character to a TextStream file]
WriteLine(|[string])
; Properties
[arguments | Returns an array containing each argument passed to the currently executing function]
arguments[|]
[AtEndOfLine | Returns true if the file pointer is positioned immediately before the end-of-line marker in a TextStream file; false if it is not. Read-only]
AtEndOfLine|
[AtEndOfStream | Returns true if the file pointer is at the end of a TextStream file; false if it is not. Read-only]
AtEndOfStream|
[Attributes | Sets or returns the attributes of files or folders. Read/write or read-only, depending on the attribute]
Attributes |[= newattributes]
[AvailableSpace | Returns the amount of space available to a user on the specified drive or network share]
AvailableSpace|
[Column | Read-only property that returns the column number of the current character position in a TextStream file]
Column|
[CompareMode | Sets and returns the comparison mode for comparing string keys in a Dictionary object]
CompareMode|[ = compare]
[constructor | Specifies the function that creates an object]
constructor|
[Count | Returns the number of items in a collection or Dictionary object. Read-only]
Count|
[DateCreated | Returns the date and time that the specified file or folder was created. Read-only]
DateCreated|
[DateLastAccessed | Returns the date and time that the specified file or folder was last accessed. Read-only]
DateLastAccessed|
[DateLastModified | Returns the date and time that the specified file or folder was last modified. Read-only]
DateLastModified|
[description | Returns or sets the descriptive string associated with a specific error]
description| [= stringexpression]
[Drive | Returns the drive letter of the drive on which the specified file or folder resides. Read-only]
Drive|
[DriveLetter | Returns the drive letter of a physical local drive or a network share. Read-only]
DriveLetter|
[Drives | Returns a Drives collection consisting of all Drive objects available on the local machine]
Drives|
[DriveType | Returns a value indicating the type of a specified drive]
DriveType|
[E | Returns Euler's constant, the base of natural logarithms. The E property is approximately equal to 2.718]
Math.E|
[Files | Returns a Files collection consisting of all File objects contained in the specified folder, including those with hidden and system file attributes set]
Files|
[FileSystem | Returns the type of file system in use for the specified drive]
FileSystem|
[FreeSpace | Returns the amount of free space available to a user on the specified drive or network share. Read-only]
FreeSpace|
[index | Returns the character position where the first successful match begins in a searched string]
RegExp.index|
[Infinity | Returns an initial value of Number.POSITIVE_INFINITY]
Infinity|
[input | Returns the string against which a search was performed. Read-only]
RegExp.input|
[isFinite | Returns a Boolean value that indicates if a supplied number is finite]
isFinite(|number)
[IsReady | Returns True if the specified drive is ready; False if it is not]
IsReady|
[IsRootFolder | Returns True if the specified folder is the root folder; False if it is not]
IsRootFolder|
[Item | Sets or returns an item for a specified key in a Dictionary object. For collections, returns an item based on the specified key. Read/write]
Item(|key)[ = newitem]
[Key | Sets a key in a Dictionary object]
Key(|key) = newkey
[lastIndex | Returns the character position where the last successful match begins in a searched string]
RegExp.lastIndex|
[length(Arr) | Returns an integer value one higher than the highest element defined in an array]
length|
[length(Fcn) | Returns the number of arguments defined for a function]
length|
[length(Str) | Returns the length of a String object]
length|
[Line | Read-only property that returns the current line number in a TextStream file]
Line|
[LN2 | Returns the natural logarithm of 2]
Math.LN2|
[LN10 | Returns the natural logarithm of 10]
Math.LN10|
[LOG2E | Returns the base-2 logarithm of e, Euler's constant]
LOG2E|
[LOG10E | Returns the base-10 logarithm of e, Euler's constant]
LOG10E|
[MAX_VALUE | Returns the largest number representable in JScript. Equal to approximately 1.79E+308]
MAX_VALUE|
[MIN_VALUE | Returns the number closest to zero representable in JScript. Equal to approximately 2.22E-308]
MIN_VALUE|
[NaN(Gl) | Returns the special value NaN indicating that an expression is not a number]
NaN|
[NaN(Num) | A special value that indicates an arithmetic expression returned a value that was not a number]
NaN|
[Name | Sets or returns the name of a specified file or folder. Read/write]
Name |[= newname]
[NEGATIVE_INFINITY | Returns a value more negative than the largest negative number (-Number.MAX_VALUE) representable in JScript]
NEGATIVE_INFINITY|
[number | Returns or sets the numeric value associated with a specific error. The Error object's default property is number]
number| [= errornumber]
[ParentFolder | Returns the folder object for the parent of the specified file or folder. Read-only]
ParentFolder|
[Path | Returns the path for a specified file, folder, or drive]
Path|
[PI | Returns the ratio of the circumference of a circle to its diameter, approximately 3.141592653589793]
Math.PI|
[POSITIVE_INFINITY | Returns a value larger than the largest number (Number.MAX_VALUE) that can be represented in JScript]
POSITIVE_INFINITY|
[prototype | Returns a reference to the prototype for a class of objects]
prototype|
[RootFolder | Returns a Folder object representing the root folder of a specified drive. Read-only]
RootFolder|
[search | Returns the position of the first substring match in a regular expression search]
search(|rgexp)
[SerialNumber | Returns the decimal serial number used to uniquely identify a disk volume]
SerialNumber|
[ShareName | Returns the network share name for a specified drive]
ShareName|
[ShortName | Returns the short name used by programs that require the earlier 8.3 naming convention]
ShortName|
[ShortPath | Returns the short path used by programs that require the earlier 8.3 file naming convention]
ShortPath|
[Size | For files, returns the size, in bytes, of the specified file. For folders, returns the size, in bytes, of all files and subfolders contained in the folder]
Size|
[source | Returns a copy of the text of the regular expression pattern. Read-only]
source|
[SQRT1_2 | Returns he square root of 0.5, or one divided by the square root of 2]
Math.SQRT1_2|
[SQRT2 | Returns the square root of 2]
Math.SQRT2|
[SubFolders | Returns a Folders collection consisting of all folders contained in a specified folder, including those with hidden and system file attributes set]
SubFolders|
[TotalSize | Returns the total space, in bytes, of a drive or network share]
TotalSize|
[Type | Returns information about the type of a file or folder. For example, for files ending in .TXT, "Text Document" is returned]
Type|
[VolumeName | Sets or returns the volume name of the specified drive. Read/write]
VolumeName |[= newname]
; Functions
[GetObject | Returns a reference to an Automation object from a file]
GetObject(|[pathname] [, class])
[ScriptEngine | Returns a string representing the scripting language in use]
ScriptEngine()|
[ScriptEngineBuildVersion | Returns the build version number of the scripting engine in use]
ScriptEngineBuildVersion()|
[ScriptEngineMajorVersion | Returns the major version number of the scripting engine in use]
ScriptEngineMajorVersion()|
[ScriptEngineMinorVersion | Returns the minor version number of the scripting engine in use]
ScriptEngineMinorVersion()|
; Objects
[ActiveXObject | Enables and returns a reference to an Automation object]
var | = new ActiveXObject("servername.typename"[, "location"])
[Array | Provides support for creation of arrays of any data type]
new Array(|);
[Array() | Provides support for creation of arrays of any data type]
var | = new Array();
[Array(size) | Provides support for creation of arrays of any data type]
var | = new Array(size);
[Array(e0..en) | Provides support for creation of arrays of any data type]
var | = new Array(element0, ..., elementn);
[Boolean | Creates a new Boolean value]
var | = new Boolean(boolvalue)
[Date | Enables basic storage and retrieval of dates and times]
var | = new Date()
[Date(UCT) | Enables basic storage and retrieval of dates and times]
var | = new Date(dateVal)
[Date(y, m, ...) | Enables basic storage and retrieval of dates and times]
var | = new Date(year, month, date[, hours[, minutes[, seconds[,ms]]]]) 
[Dictionary | Object that stores data key, item pairs]
var | = new ActiveXObject("Scripting.Dictionary")
[Enumerator | Enables enumeration of items in a collection]
var | = new Enumerator(collection) 
[Error | Contains information about errors]
var | = new Error() 
[Error(num) | Contains information about errors]
var | = new Error(number) 
[Error(num, desc) | Contains information about errors]
var | = new Error(number, description) 
[FileSystemObject | Provides access to a computer's file system]
var | = new ActiveXObject("Scripting.FileSystemObject")
[Function | Creates a new function]
function |functionname( [argname1 [, ... argnameN]] )
{
    
}
[Function(call) | Creates a new function]
var |functionname = new Function( [argname1, [... argnameN,]] body );
[Math | An intrinisic object that provides basic mathematics functionality and constants]
Math|[.{property | method}]
[Number | An object representation of the number data type and placeholder for numeric constants]
var | = new Number(value);
[Object | Provides functionality common to all JScript objects]
var | = new Object([value]);
[RegExp | Stores information on regular expression pattern searches]
RegExp.|propertyname 
[Regular Expression | Contains a regular expression pattern]
var |regularexpression = /pattern/[switch]
[Regular Expression() | Contains a regular expression pattern]
var |regularexpression = new RegExp("pattern",["switch"])
[String | Allows manipulation and formatting of text strings and determination and location of substrings within strings]
|StringObj[.method]
[VBArray | Provides access to Visual Basic safe arrays]
var | = new VBArray(safeArray);
; Statements
[do...while | Executes a statement block once, and then repeats execution of the loop until a condition expression evaluates to false]
do {
   |
} while (expression); 
[for | Executes a block of statements for as long as a specified condition is true]
for (|initialization; test; increment) {
    
}    
[for...in | Executes one or more statements for each property of an object, or each element of an array]
for (|variable in [object | array]) {
  
}    
[@if | Conditionally executes a group of statements, depending on the value of an expression]
@if (condition1)
     text1
\[@elif (condition2)
     text2]
\[@else
     text3]
@end 
[if | Conditionally executes a group of statements, depending on the value of an expression]
if (|){
     
}
[if...else | Conditionally executes a group of statements, depending on the value of an expression]
if (|condition){
     
}
else {
     
} 
[Labeled | Provides an identifier for a statement]
|label :
    statement 
[@set | Creates variables used with conditional compilation statements]
@set @|varname = term
[switch | Enables the execution of one or more statements when a specified expression's value matches a label]
switch (|expression) {
   case label : statementlist
   case label : statementlist
   ...
   default :    statementlist
} 
[throw | Generates an error condition that can be handled by a try...catch statement]
throw |exception
[try...catch | Implements error handling for JScript]
try {
  tryStatements
}
catch(exception){
  catchStatements
}
[var | Declares a variable]
var |variable [ = value ] [, variable2 [ = value2], ...] 
[while | Executes a statement until a specified condition is false]
while (expression){
   statements
}
[with | Establishes the default object for a statement]
with (|object){
   statements
}
; Operators
[instanceof | Returns a Boolean value that indicates whethor or not an object is an instance of a particular class]
|result = object instanceof class
; Function shotcuts
[doc.write | Display information - parameter ]
document.write(|)
[doc.writeln | Display information - parameter ]
document.writeln(|)
; others
[SCRIPT | Script description ]
<SCRIPT LANGUAGE="JScript">
  |
</SCRIPT>
[window.alert | Display message box ]
window.alert(|)
[window.confirm | Display message box with Yes, No buttons]
window.confirm(|)
[window.prompt | Display prompt with text field in which the user can type an answer in response to your prompt]
window.prompt(|)
[Create files | Short sample to create files]
var |fso, f1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.CreateTextFile("c:\\testfile.txt", true);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -