js 中caller的意思,这段代码看不懂,帮看看
生活随笔
收集整理的這篇文章主要介紹了
js 中caller的意思,这段代码看不懂,帮看看
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
直接寫 函數(shù)名(laydate)不優(yōu)雅,后期函數(shù)改名后都要改,可以用callee,最終實(shí)現(xiàn)的效果都是一樣的。
If the function f was invoked by the top level code, the value of f.caller is null, otherwise its the function that called f.這東西好像不建議使用。
調(diào)用 laydate 函數(shù)的函數(shù)的第一個(gè)參數(shù)。
If the function f was invoked by the top level code, the value of f.caller is null, otherwise its the function that called f.這東西好像不建議使用。
調(diào)用 laydate 函數(shù)的函數(shù)的第一個(gè)參數(shù)。
總結(jié)
以上是生活随笔為你收集整理的js 中caller的意思,这段代码看不懂,帮看看的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。