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
全部评论

相关推荐

勇敢牛牛不怕困难,希望能过初筛
投递韶音科技等公司10个岗位
点赞 评论 收藏
分享
06-23 11:43
门头沟学院 Java
allin校招的烤冷...:我靠,今天中午我也是这个hr隔一个星期发消息给我。问的问题还是一模一样的😅
点赞 评论 收藏
分享
头像
07-24 13:05
已编辑
西南大学 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务