Javascript3

2,574 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,574
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Javascript3

    1. 1. 1.
    2. 2. var a= b
    3. 3. new
    4. 4. var a = new String(“text”);
    5. 5. var a = new String(“text”);• new• new String
    6. 6. Stringnew
    7. 7. new
    8. 8. this
    9. 9. function test(x,y){ this.x = x; this.y = y; } var a = new test(1,2);new test(1,2) testnewnew this
    10. 10. this
    11. 11. var a= obj; a obj
    12. 12. this
    13. 13. this=
    14. 14. •• function(){ … }••
    15. 15. var test = function(x,y){ this.x = x; this.y = y;};function test(x,y){ this.x = x; this.y = y;}
    16. 16. var test = function(){ this.a = “abc”;};test.text = “ ”;test.text2 = “ ”;
    17. 17. new
    18. 18. new
    19. 19. test
    20. 20. var test = function(){ this.a = "abc";};test.text = " ";var a = new test();console.log(a.a);console.log(text.text);console.log(a.text);
    21. 21. text
    22. 22. thistext
    23. 23. new
    24. 24. prototype
    25. 25. prototype
    26. 26. prototype
    27. 27. constructorprototype
    28. 28. var test = function(){ this.a = "abc";};//test.prototypetest.prototype = { constructor:function(){ this.a= "abc" }, __proto__:Object //IE};
    29. 29. __proto__ prototypeIE __proto__
    30. 30. prototypenew prototype
    31. 31. a.text = "1234" a text
    32. 32. 2.
    33. 33. var a = { abc:"text"};{}
    34. 34. new
    35. 35. prototypenew
    36. 36. var test = { test : "text"};var Creator = function(){};Creator.prototype = test;var a = new Creator();console.log(a.test);//text
    37. 37. CSS cascade
    38. 38. new
    39. 39. jQuery
    40. 40. • new• prototype• prototype• prototype• prototype

    ×