Last active
December 18, 2015 10:49
-
-
Save chengmu/5771443 to your computer and use it in GitHub Desktop.
This file contains 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
(function(window, document, undefined){ | |
})(this, document) | |
//anything apart from window and document get passed into it will be treated as undefined; | |
//this could forbidden the undefined asserssments error |
This file contains 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
mo |
This file contains 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
(function(){ | |
doStuff(); | |
setTimeout(arguments.callee, 100); | |
})() | |
//异步方式 | |
//使用函数减少一步查询 little performance enhangcement | |
(function loadMore(){ | |
$('#update').get('awe.php', function(){ | |
loadMore(); | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment