Skip to content

Instantly share code, notes, and snippets.

@lushijie
Created December 29, 2017 08:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lushijie/f85bd78ecf314578d12a316ca959a3b8 to your computer and use it in GitHub Desktop.
Save lushijie/f85bd78ecf314578d12a316ca959a3b8 to your computer and use it in GitHub Desktop.
第一次声明执行并绑定this
let articleRequest = () => {
let f = function() {
// todo
}.bind(this)();
return f;
};
articleRequest();
let articleRequest2 = function f() {
// todo
return f;
}.bind(this)().bind(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment