
JScript Deviations from ES3
kuangbaoxu21110
人生的程序跑起来,就再也停不下来拉!
展开
-
XMLHttpRequest
内容见附件原创 2008-07-08 16:57:00 · 100 阅读 · 0 评论 -
使用Javascript和DOM Interfaces来处理HTML
关于内容见附件!原创 2008-07-08 16:53:39 · 103 阅读 · 0 评论 -
String.prototype.split
[code="java"]/*官网原文: ES3 states that “If separator is a regular expression that contains capturing parentheses, then each time separator is matched the results (including any undefined result...2008-06-30 17:18:50 · 126 阅读 · 0 评论 -
Array.prototype.unshift
[code="java"]/*官网原文:Array.unshift prepends its arguments to the start of the array and is supposed to return the length of the resultant array. The returned value of this function call in JScrip...2008-06-30 17:01:08 · 114 阅读 · 0 评论 -
Array.prototype.join
[code="java"]/*JScript does not default the separator to “,” if the separator value is undefined.*/ var array = [1, 2]; alert(array.join()); alert(array.join(undefined)); alert(array.joi...2008-06-30 16:59:18 · 97 阅读 · 0 评论 -
The try statement:
[code="java"]/*官网原文:In JScript, the variable used to hold a caught exception is visible in the enclosing scope. The variable exists after the catch clause has finished executing but ceases to ex...2008-06-30 15:52:27 · 179 阅读 · 0 评论 -
Enumerating shadowed
[code="java"]/*官网原文:Custom properties that shadow [[DontEnum]] properties on Object.prototype are not enumerated using for-in. In the following example toString is a property available on Object...2008-06-30 15:46:41 · 106 阅读 · 0 评论 -
Function Declarations within bodies
[code="java"]/*官网原文:When a function is defined using a function declaration, JScript binds the function to the global scope regardless of any scope changes introduced by with clauses.*/ ...2008-06-30 15:44:15 · 91 阅读 · 0 评论 -
Function Expressions scope
[code="java"]/*官网原文: In JScript the identifier in a function expression is visible in the enclosing scope because such expressions are treated as function declarations. Example: */ ...2008-06-26 20:46:52 · 80 阅读 · 0 评论 -
Array Initialiser 要小心
[code="java"]/*Trailing commas in array literals add to the length, but they shouldn‟t. JScript treats the empty element after the trailing comma as undefined. Example:*/ document.w...2008-06-26 20:05:53 · 94 阅读 · 0 评论 -
全局函数不能被迭代
[code="java"]/*官网原文: In JScript, global functions cannot be iterated using the global this object. Example:*/ var __global__ = this; function invisibleToIE() ...2008-06-26 20:02:13 · 90 阅读 · 0 评论 -
奇怪的 Arguments 对象
[code="java"]/*注意每个浏览器的实现方式不同,他们处理的方法也不同.官网原文: There is no uniform handling of a variable named arguments amongst the various script engine implementations. Example:*/ func...2008-06-26 19:43:47 · 201 阅读 · 0 评论 -
注意字符串中的 "\"
[code="java"]/*官网原文: JScript allows C-style escaped newlines in string literals; according to ES3 this would be a syntax error for unterminated string constant Example:*/ ...2008-06-26 19:35:27 · 128 阅读 · 0 评论 -
特殊的转义字符 "\v"
[code="java"]/*官网原文: JScript does not support the \v vertical tab character as a white space character. It treats \v as v. Example: */ alert('\v supported ' + (String.fromCharC...2008-06-26 19:25:38 · 41224 阅读 · 0 评论