码迷,mamicode.com
首页 > Web开发 > 详细

js偏难题

时间:2016-06-30 20:02:26      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:

1.

var f = function g() {
        return 23;
    };
typeof g(); 

error;  运行f()为23;

2.

(function (x) {
    delete x;
    return x;
})(1);

1; 了解delete用法?????

3.

(function f(f) {
    return typeof f();
})(function () {
    return 1;
});

“number”   ?????

  

js偏难题

标签:

原文地址:http://www.cnblogs.com/lixuemin/p/5630977.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!