当前位置:网站首页>这些题~~
这些题~~
2022-07-27 14:39:00 【前行的枫】
1.题1
var dlb = 1;
if(function a(){
}){
dlb += typeof a;
}
console.log(dlb)
2.题2
var abc = (
function f (){
return "1";
},
function g (){
return 2;
})();
console.log(abc);
3.题3
var def = [1,2];
function aa(param){
param[0] = 100;
//param = 100;
}
aa(def);
console.log(def);
4.题4(this指向问题)
var length = 10;
function fn(){
console.log(this.length);
}
var obj = {
length: 5,
method: function(fn){
fn();
arguments[0]();
}
};
obj.method(fn,1);
5.result的输入结果
const result = ['1', '2', '100'].map(parseInt);
console.log( result );
边栏推荐
- On juicefs
- 折半插入排序
- [sword finger offer] interview question 51: reverse pairs in the array - merge sort
- Analysis of spark task scheduling exceptions
- [tensorboard] oserror: [errno 22] invalid argument processing
- [sword finger offer] interview question 42: the maximum sum of continuous subarrays -- with 0x80000000 and int_ MIN
- juc包下常用工具类
- Modify spark to support remote access to OSS files
- Talk about the index of interview questions
- __typeof和typeof的差异
猜你喜欢

多线程带来的的风险——线程安全

Flask连接mysql数据库已有表

Voice live broadcast system -- a necessary means to improve the security of cloud storage
![[sword finger offer] interview question 46: translating numbers into strings - dynamic programming](/img/ba/7a4136fd95ba2463556bc45231e8a2.png)
[sword finger offer] interview question 46: translating numbers into strings - dynamic programming

SQL multi table query

First acquaintance with MySQL database

UDP 的报文结构和注意事项

Division of entity classes (VO, do, dto)

leetcode234题-简单方法判断回文链表

直接插入排序
随机推荐
Hj8 consolidated statement record
Binary Insertion Sort
C language: string function and memory function
Text batch replacement function
Breaking through soft and hard barriers, Xilinx releases Vitis unified software platform for developers
Zhaoqi scientific innovation and entrepreneurship competition planning and undertaking organization, mass entrepreneurship and innovation platform, project landing and docking
借5G东风,联发科欲再战高端市场?
To meet risc-v challenges? ARM CPU introduces custom instruction function!
Network principle (1) - overview of basic principles
逗号操作符你有用过吗?
QT (VI) value and string conversion
[regular expression] match the beginning and end
台积电6纳米制程将于明年一季度进入试产
Talk about the index of interview questions
Voice live broadcast system -- a necessary means to improve the security of cloud storage
First understanding of structure
突发!海康/大华/商汤/旷视/依图/科大讯飞等28家中国实体被美列入黑名单
[sword finger offer] interview question 55 - Ⅰ / Ⅱ: depth of binary tree / balanced binary tree
Binder initialization process
DRF学习笔记(二):数据反序列化