js 中caller的意思,这段代码看不懂,帮看看
生活随笔
收集整理的這篇文章主要介紹了
js 中caller的意思,这段代码看不懂,帮看看
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
直接寫 函數名(laydate)不優雅,后期函數改名后都要改,可以用callee,最終實現的效果都是一樣的。
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.這東西好像不建議使用。
調用 laydate 函數的函數的第一個參數。
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.這東西好像不建議使用。
調用 laydate 函數的函數的第一個參數。
總結
以上是生活随笔為你收集整理的js 中caller的意思,这段代码看不懂,帮看看的全部內容,希望文章能夠幫你解決所遇到的問題。