Skip to content

Instantly share code, notes, and snippets.

@zythum
Last active January 3, 2016 13:39
Show Gist options
  • Save zythum/8471205 to your computer and use it in GitHub Desktop.
Save zythum/8471205 to your computer and use it in GitHub Desktop.

Revisions

  1. zythum revised this gist Jan 17, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 我要的是这样
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ function where_is_my_func () {
    function sun (a, b) {
    var where_is_my_func = 'your are not here'
    b = [].slice.call(arguments, 1)
    return !b.length ? a : arguments.callee.apply(arguments.callee.caller, [b, b[0] += a][0])
    return !b.length ? a : arguments.callee.apply(this, [b, b[0] += a][0])
    }

    sun(1, 2, 3, 4, 5, 6, 7, 8, 9)
  2. zythum created this gist Jan 17, 2014.
    11 changes: 11 additions & 0 deletions 我要的是这样
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    function where_is_my_func () {
    return 'I am here'
    }
    function sun (a, b) {
    var where_is_my_func = 'your are not here'
    b = [].slice.call(arguments, 1)
    return !b.length ? a : arguments.callee.apply(arguments.callee.caller, [b, b[0] += a][0])
    }

    sun(1, 2, 3, 4, 5, 6, 7, 8, 9)
    console.log(where_is_my_func)