JavaScript
XD
; , . [] {}
-               -_-b-var _ = -1, b = -1;return -_-b;
-var a, b, c;a = b = 1;var node;if(node = D.get(‘myId’)) { // ...
-if(a != b) -> if(a - b)if(a == b) -> if(!(a - b))== & ===,
-, . [] {};,{}
-, . [] {}.[]
-newindeletetypeofinstanceof             typeof & instanceof?
-var
-if...else ifif     continue/break?switch...case
-                      gotofor     while/do...while?do...while(0)?
-         debuggerreturnthrowtry...catch(e)
-Functionjscex:
NaN: parseundefined:         null   NaN & undefined?
(Scalar)(Object)
-
-
call & applyarguments
-call & applyvar log = function() { window.console && console.log.apply(console, arguments);};var w = document.write;w.cal...
-argumentsIt’s automaticvar init = function() { return function() {   if(arguments.callee.invoked) return;   arguments.cal...
janlay@gmail.com     @janlay
谈谈Javascript设计
谈谈Javascript设计
谈谈Javascript设计
谈谈Javascript设计
Upcoming SlideShare
Loading in...5
×

谈谈Javascript设计

6,015

Published on

Published in: Technology
1 Comment
4 Likes
Statistics
Notes
  • cool
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
6,015
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
40
Comments
1
Likes
4
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
  • 谈谈Javascript设计

    1. 1. JavaScript
    2. 2. XD
    3. 3. ; , . [] {}
    4. 4. - -_-b-var _ = -1, b = -1;return -_-b;
    5. 5. -var a, b, c;a = b = 1;var node;if(node = D.get(‘myId’)) { // ...
    6. 6. -if(a != b) -> if(a - b)if(a == b) -> if(!(a - b))== & ===,
    7. 7. -, . [] {};,{}
    8. 8. -, . [] {}.[]
    9. 9. -newindeletetypeofinstanceof typeof & instanceof?
    10. 10. -var
    11. 11. -if...else ifif continue/break?switch...case
    12. 12. - gotofor while/do...while?do...while(0)?
    13. 13. - debuggerreturnthrowtry...catch(e)
    14. 14. -Functionjscex:
    15. 15. NaN: parseundefined: null NaN & undefined?
    16. 16. (Scalar)(Object)
    17. 17. -
    18. 18. -
    19. 19. call & applyarguments
    20. 20. -call & applyvar log = function() { window.console && console.log.apply(console, arguments);};var w = document.write;w.call(document, ‘some message’);
    21. 21. -argumentsIt’s automaticvar init = function() { return function() { if(arguments.callee.invoked) return; arguments.callee.invoked = true; // ...
    22. 22. janlay@gmail.com @janlay
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×