js 中caller的意思,這段代碼看不懂,幫看看?
//主接口 win.laydate = function(options){ options = options || {}; try{ as.event = win.event ? win.event : laydate.caller.arguments[0]; } catch(e){}; Dat<愛尬聊_知識大全>es.run(options); return laydate; };
這個laydate.caller.arguments[0]啥意思?
360U3355821575 21小時前
直接寫 函數(shù)名(laydate)不優(yōu)雅,后期函數(shù)改名后都要改,可以用callee,最終實(shí)現(xiàn)的效果都是一樣的。
MVP的榮耀 21小時前
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.這東西好像不建議使用。
M54****979 21小時前
調(diào)用 laydate 函數(shù)的函數(shù)的第一個參數(shù)。
