//主接口
win.laydate = function(options){
options = options || {};
try{
as.event = win.event ? win.event : laydate.caller.arguments[0];
} catch(e){};
Dates.run(options);
return laydate;
};
这个laydate.caller.arguments[0]啥意思?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
调用 laydate 函数的函数的第一个参数。
直接写 函数名(laydate)不优雅,后期函数改名后都要改,可以用callee,最终实现的效果都是一样的。
If the function f was invoked by the top level code, the value of f.caller is null, otherwise it's the function that called f.
这东西好像不建议使用。