arguments小探究

小代码实验

    window.text = function(){
        var a =  arguments;
        var b =  $.makeArray(arguments);
        var c = Array.prototype.slice.call(arguments);
        $(b).each(function(index,elem){
            var d = $(this)
            console.log(d)
            var e = elem
            console.log(e)
            var f = this
            console.log(f)
        })
    }
    text(1,2,3,4,'55')

结果

arguments

© 404mzk all right reserved,powered by Gitbookhttp://blog.404mzk.com 该文件修订时间: 2017-03-09 12:51:57

results matching ""

    No results matching ""