zoukankan      html  css  js  c++  java
  • John Resig: JavaScript's Chuck Norris

    首先翻译下题目:John Resig(jQuery的作者):JavaScript 中的 Chuck Norris(查克·诺里斯,美国著名武术家,世界著名空手道巨星)

    John Resig

    John Resig 在 JavaScript 上的功力可是不小,由他创建的 jQuery 用法简洁易上手,优雅而又功能强大,还看过他写的一本经典的《Pro Javascript Techniques》(中文名字是《精通 Javascript》),受益匪浅,在网上看他的相关资料的时候找到了一片有趣的文章,只是英文版的,遂翻译了一下下:来看看它说的什么:

    Some of the regular irc.freenode.net #jquery guys have come to the conclusion that John Resig, creator of jQuery, is the JavaScript world’s equivalent of Chuck Norris, so we came up with some ideas and decided to pay homage to him in a blog post.

    (irc.freenode.net 的家伙们已经得到了一个结论:John Resig ,这个 jQuery 的创造者,就是Javascript 世界中的 Chuck Norris,所以让咱们发个帖儿来膜拜下这个大牛吧!)

    Note: he might actually be Chuck Norris, we’re not entirely sure.

    (提示:噢!他也许真的是 Chuch Norris,但是谁知道呢?!)

    >John Resig has never made a carousel plugin.. when he goes to the carnival, ALL the rides support jQuery.

    (John Resig 从未做过旋转木马插件,因为当他去游乐场的时候,所有的木马都支持 jQuery)

    >John Resig can kill you with two lines of code. Sure, he could do it with one, but the force of the explosion would cause the universe to collapse into a giant black hole.

    (John Resig 可以用两行代码干掉你!当然,他用一行就够了,但是爆炸的威力会让宇宙崩塌成一个巨大的黑洞)

    >John Resig’s computer is custom-fitted with a titanium keyboard, because anything less substantial will melt.

    (John Resig的电脑特别定制了钛键盘,因为稍微脆弱一点的会熔化掉)

    >$(“John Resig”).position(); returns “everywhere!”.

    ($('John Resig').position(); 返回"无所不在!")

    408ebe

    >When John Resig types $.jump() the console prints “how high?”

    (当 John Resig 输入 $.jump(),控制台输出"多高?")

    >When John Resig types $.require(), it’s not a request, it’s a threat.

    (当 John Resig 输入$.require(), 记住,这不是一个请求,这是一个恐吓!)

    >John Resig does not $.queue().

    (哦!这家伙从来不排队!)

    >John Resig scheduled a cron job to run “rm -rf /” sometime in 2012. How the heck did the Mayans know that?

    (John Resig 定义了一个计划任务,在 2012 年的某天运行‘rm –rf /’,为什么玛雅人会知道??)

    >The last time John Resig used $.die(), they amended the Geneva Convention to expressly forbid it.

    (上一次 John Resig 用 $.die() 的时候,他们修订了日内瓦公约明确禁止这么做!- -)

    >John Resig triggers onfocus ALL THE TIME.

    (John Resig 持续‘onfocus’ )

    >$(“John Resig”).length returns “14 inches”.

    ($(“John Resig”).length 返回~ 14 英寸!)

    >John Resig doesn’t query the DOM, he just glances at it and gets all the elements he was expecting.

    (John Resig 从不查找 DOM,他只要扫一眼就会得到他想要的东西)

    >When John Resig inspects an element, he sees the raw electrons.

    (John Resig 查看一个元素时,他看到的是原始的电子!)

    >When John Resig edits his hosts file, he doesn’t need sudo.

    (当 John Resig 需要编辑 hosts 文件时,他不需要 sudo!)

    >When John Resig runs scripts cross-domain, they just run.

    (当 John Resig 运行跨域脚本时,那就随便他运行吧~!!)

    >John Resig doesn’t wait for the DOM to be ready, it waits for him to be ready.

    (John Resig 从不等待 DOM 变为 ready 状态,DOM 都在等他 ready)

    >When John Resig tests isNaN(), it had better not be a number.

    (John Resig 检测 isNaN() 时,它最好不是一个数字)

    >John Resig’s commits ignore all post-commit hooks, because John Resig always has the last word.

    (John Resig 提交新版本不需要写注释,因为 John Resig 也永远说不完)



  • 相关阅读:
    命令行构建Unity项目
    Android AIDL实例解析
    Android aidl Binder框架浅析
    Uri详解之——Uri结构与代码提取
    Glide使用详解(一)
    ImageView的scaleType详解
    关于Android导入开源项目:Error:Unable to load class 'org.gradle.api.publication.maven.internal.DefaultMavenFa
    15 个 Android 通用流行框架大全
    动画 节拍器
    Android background tint颜色渲染
  • 原文地址:https://www.cnblogs.com/catprayer/p/1904662.html
Copyright © 2011-2022 走看看