TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Advanced JavaScript: Compose function

18 pointsby heseltineabout 15 years ago

2 comments

heseltineabout 15 years ago
@apphacker - are you sure? I thought bind assigned the value of 'this' in a function.
评论 #1310833 未加载
评论 #1310885 未加载
apphackerabout 15 years ago
This is simply bind which will be in future versions of JavaScript. <a href="http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/" rel="nofollow">http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more...</a> It has been available in dojo as dojo.hitch, goog.bind, $.hitch in a jQuery plugin.
评论 #1310903 未加载