8月31日    1,js的变量提升,写输出  //输出console.log(x)var x = 2//输出console.log(x)let x = 2     2.题目写输出;     (function(){    var x = y = 1;})();console.log(y);console.log(x);   3.js原型链的问题  function Parent(){   this.a = 'Parent';}function Tom() {   this.a = 'Tom'}Parent.__proto__.print = function(){   console.log(this.a)}Parent.print()Tom.print()var child = new Parent()child.print()执行以上代码,将分别输出什么?A. 'undefined' 'Uncaught TypeError ...' 'Parent'B. 'Parent' 'Uncaught TypeError ...' 'Uncaught TypeError ...'C. 'Parent' 'Tom' 'Uncaught TypeError ...'D. 'undefined' 'undefined' 'Uncaught TypeError ...' 4.实现函数isArray()方法(面试官提示使用Object.prototype.toString.call)    5.css的position的值有什么,并解释说明    6 .flex布局的三个字段是什么意思     justify-content       align-items     flex-direction   7.清除浮动的方式有什么    8.对BFC的理解,怎么开启BFC    9.跨域是为了解决什么问题,有什么方式解决跨域问题    10.怎么确定简单请求和复杂请求    11.CORS对简单请求和复杂请求有什么区别    12.HTTP的keep-alive字段    13.缓存相关的头部,并进行解释    14,代码实现:         function isNiceNumber(str) {}               从字符串找靓号(4个连续相同数字,或四个连续递增加1的数字 ),符合以下两个条件之一的号码可认为是靓号          1. 至少连续4个相同的数字          2. 至少连续4个递增为1的数字                 
点赞 4
评论 2
全部评论

相关推荐

03-16 22:00
武汉大学 C++
幸福的小熊猫想要offer:我阿里投的 c++岗,面试官说自己是做 java 的,c++这辈子才有了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务