Copyright By [email protected]@nilnul.com Free for non-commercial use. Editable...
-
Upload
jasmine-rose -
Category
Documents
-
view
213 -
download
0
Transcript of Copyright By [email protected]@nilnul.com Free for non-commercial use. Editable...
![Page 1: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/1.jpg)
Copyright
Free for non-commercial use.Editable provided that the copyright claim is
included.
![Page 2: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/2.jpg)
Notational ConventionsFor Heading Slides:
Background Hue: Red, Yellow, Green, Cyan, Blue, Magenta
as in Iris Saturation decreases Brightness increases
Color offset to BackgroundFont size
decreasesPosition
Shifted rightSideline slides are grey
![Page 3: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/3.jpg)
Notational Conventions
Unordered List BulletsOrdered by color and the bigness of colored areaFont size decreases
![Page 4: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/4.jpg)
Built in objects
![Page 5: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/5.jpg)
CategoryNative Objects
Built In String, Number, Array, Image, Date, Math
User-Defined Objects.
Host Objectswindow
![Page 6: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/6.jpg)
![Page 7: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/7.jpg)
global is read only and cannot be referenced.window is a member of global.window refers to global.
![Page 8: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/8.jpg)
![Page 9: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/9.jpg)
NaNInfinityundefined
![Page 10: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/10.jpg)
isNaNisFinite
![Page 11: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/11.jpg)
parseIntparseFloat
![Page 12: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/12.jpg)
URI decodeURIdecodeURIComponentencodeURIencodeUTIComponent
escapeunescape
![Page 13: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/13.jpg)
encodeURI('a//: 中文 ') "a//:%20%E4%B8%AD%E6%96%87"
encodeURIComponent('a//: 中文 ') "a%2F%2F%3A%20%E4%B8%AD
%E6%96%87"
![Page 14: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/14.jpg)
Escape is used for strings
encodeURI(‘a 中文 ') “a%20%E4%B8%AD
%E6%96%87"
escape("ab._ 中 文c")
"ab._%20%u4E2D%u6587c"
![Page 15: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/15.jpg)
constructorsBooleanNumberStringObjectFunctionArray
![Page 16: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/16.jpg)
constructorsDateRegExp
![Page 17: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/17.jpg)
errorErrorEvalErrorRangeErrorReferenceErrorSyntaxErrorTypeErrorURIError
![Page 18: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/18.jpg)
MathJSON
![Page 19: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/19.jpg)
eval
![Page 20: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/20.jpg)
![Page 21: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/21.jpg)
Object can be used as a [function]Thus a constructor.
![Page 22: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/22.jpg)
Objectalert(Object
instanceof Object);//true
alert(Object instanceof Function); //true
alert(typeof Object);//function
Object
function()
{[navtive
code]}
Object.prototype
Inherit{1}
.prototype
“Create”
.constructor
inherit
Object
Function
.prototype
.constructor
![Page 23: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/23.jpg)
Object.prototype
![Page 24: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/24.jpg)
Object.prototype.toString ( ) [object class]
![Page 25: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/25.jpg)
![Page 26: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/26.jpg)
Function’s Constructor
Function
function()
{[navtive
code]}
Object.prototype
Inherit{1}
.prototype
“Create”
.constructor
inherit
Function
Function.prototype.a=1;alert(Function.a);
![Page 27: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/27.jpg)
(A function)’s Constructorfunction f() { }alert(f.constructor);alert(f.constructror.construc
tor);alert(Function.constructor);alert(f.constructor.construct
or.constructor);alert(f.constructor.construct
or.constructor.constructor);
Function
function
1
function()
{[navtive
code]}
Object.prototype
Inherit{1}
.prototype
Create
.constructor
inherit
![Page 28: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/28.jpg)
Function the [[Class]]Function is a sub[[Class]] of “Object”[[Class]]
![Page 29: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/29.jpg)
Function.prototype
![Page 30: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/30.jpg)
Function prototype object is itself a Function object (its [[Class]] is "Function") that, when invoked, accepts any arguments and returns undefined.
![Page 31: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/31.jpg)
Unless specified otherwise, the [[Class]] internal property of a built-in object is "Function" if that built-in object has a [[Call]] internal property, or "Object" if that built-in object does not have a [[Call]] internal property.
![Page 32: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/32.jpg)
Function Instances
![Page 33: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/33.jpg)
functionfunction a() { }
a=function(){}function (){}new Function()
Function(…)
![Page 34: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/34.jpg)
![Page 35: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/35.jpg)
String
var a = String("a");var b = new String("b");
alert(typeof a);//stringalert(a);//a;alert(typeof b);//objectalert(b);//b
![Page 36: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/36.jpg)
DateDate() returns a stringnew Date() returns an object
inspect(Date()
);inspect(
new Date());
![Page 37: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/37.jpg)
Math[[Class]] Math
![Page 38: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/38.jpg)
Array[[Class]]:Array
![Page 39: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/39.jpg)
Date.prototype.toStringThis function returns a String value. The
contents of the String are implementation-dependent, but are intended to represent the Date in the current time zone in a convenient, human-readable form.
![Page 40: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/40.jpg)
JSONcontains two functions, parse and stringify,[[Class]] JSONExtensible[[Construct]] false[[Call]] false
![Page 41: Copyright By wangyoutian@nilnul.comwangyoutian@nilnul.com Free for non-commercial use. Editable provided that the copyright claim is included.](https://reader037.fdocuments.net/reader037/viewer/2022110404/56649eab5503460f94bb1c74/html5/thumbnails/41.jpg)
Thank You!