没有合适的资源?快使用搜索试试~ 我知道了~
caller-of:有史以来最小但最强大的 JS 实用程序
共18个文件
js:6个
after:2个
before:2个
需积分: 9 0 下载量 192 浏览量
2021-06-15
08:38:58
上传
评论
收藏 9KB ZIP 举报
温馨提示
来电者 有史以来最小但最强大的 JS 实用程序 :D /** WTFPL Style License */ function callerOf ( c ) { return c . call . bind ( c ) } 上面的代码做什么 这是我们通常做的 object . hasOwnProperty ( key ) 这是callerOf创建的内容 hasOwnProperty ( object , key ) 所以我们可以随时借用任何方法并以一种对压缩器友好的方式重用它。 var bind = callerOf ( Function . bind ) ; // easy log var log = bind ( console . log , console ) ; log ( 'it works' ) ; // common borrowed methods var
资源推荐
资源详情
资源评论
收起资源包目录
caller-of-master.zip (18个子文件)
caller-of-master
package.json 498B
test
Function.prototype.js 326B
caller-of.js 399B
index.html 4KB
src
caller-of.js 57B
.npmignore 100B
.gitignore 23B
Makefile 2KB
README.md 2KB
template
copyright 40B
amd.before 37B
amd.after 4B
node.before 17B
node.after 1B
LICENSE.txt 486B
build
caller-of.node.js 103B
caller-of.js 137B
caller-of.amd.js 128B
共 18 条
- 1
资源评论
一叶障不了目
- 粉丝: 13
- 资源: 4608
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功