mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-15 13:25:56 +08:00
add
This commit is contained in:
parent
3798d76720
commit
ee37d248a3
@ -914,11 +914,12 @@ function injectfunc(e, window) {
|
||||
var desc = Object.getOwnPropertyDescriptor(_Date, names[i]);
|
||||
Object.defineProperty(Date, names[i], desc);
|
||||
}
|
||||
return saf(Date);
|
||||
function Date() {
|
||||
var date = instantiate(_Date, [ftime]); // 固定返回某一个时间点
|
||||
return date;
|
||||
}
|
||||
Date.prototype = _Date.prototype
|
||||
return saf(Date);
|
||||
}(Date);
|
||||
Date.now = saf(function now(){ return ftime })
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user