摘要:
function test1(){ test2() } function test2(){ console.log(test2.caller) } test1() 运行结果 阅读全文
posted @ 2023-11-01 15:50
前端导师歌谣
阅读(18)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-11-01 15:50
前端导师歌谣
阅读(13)
评论(0)
推荐(0)
摘要:
var sum=(function(n){ if(n<=1){ return 1 } return n+arguments.callee(n-1) })(10) console.log(sum) 运行结果 阅读全文
posted @ 2023-11-01 15:49
前端导师歌谣
阅读(11)
评论(0)
推荐(0)
摘要:
function test1(){ console.log(arguments.callee) function test2(){ console.log(arguments.callee) } test2() } test1() function sum(n){ if(n<=1){ return 阅读全文
posted @ 2023-11-01 15:49
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-11-01 15:49
前端导师歌谣
阅读(8)
评论(0)
推荐(0)
摘要:
function test(a,b,c){ console.log(arguments.callee.length) console.log(test.length) console.log(arguments.length) } test(1,2) 运行结果 阅读全文
posted @ 2023-11-01 15:49
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-11-01 15:48
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
function Test(){ this.name='123' } var test=new Test() console.log(test.name) function Person(name,age){ this.name="geyao" this.age=18 } function Prog 阅读全文
posted @ 2023-11-01 15:48
前端导师歌谣
阅读(6)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-11-01 15:48
前端导师歌谣
阅读(11)
评论(0)
推荐(0)
摘要:
function Test(b){ this.d=3; var a=1; function c(){ } } Test(123) console.log(window.d) // 运行结果 阅读全文
posted @ 2023-11-01 15:48
前端导师歌谣
阅读(11)
评论(0)
推荐(0)

浙公网安备 33010602011771号