This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var scope = "s1"; | |
| var f = function(){ | |
| console.log(scope); // will print undefined | |
| var scope = "f1"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Hello, data!</title> | |
| <script type="text/javascript" src="lib/d3.js"></script> | |
| </head> | |
| <body> | |
| <div id="viz"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div > | |
| <img src="images/logo.jpg" alt="" style="display:inline-block; vertical-align:middle;" /> | |
| <span style="display:inline-block; vertical-align:middle;">xxxxxxx</span> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.each([1,2,3,4,5,6], function(i, v){ | |
| alert(v); | |
| if(v > 4){ | |
| return; | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var proApp = { | |
| inner : function(){ | |
| alert(proApp.defaultSettings.arg1); | |
| }, | |
| defaultSettings : { | |
| arg1 : 1, | |
| str : "string" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var settings = $.extend({ | |
| xx : 'xx', | |
| int : 1 | |
| }, options || {}); |
NewerOlder