Javascript3

  • 1,525 views
Uploaded on

 

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,525
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
5
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    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

Transcript

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