mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-15 15:25:54 +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]);
|
var desc = Object.getOwnPropertyDescriptor(_Date, names[i]);
|
||||||
Object.defineProperty(Date, names[i], desc);
|
Object.defineProperty(Date, names[i], desc);
|
||||||
}
|
}
|
||||||
return saf(Date);
|
|
||||||
function Date() {
|
function Date() {
|
||||||
var date = instantiate(_Date, [ftime]); // 固定返回某一个时间点
|
var date = instantiate(_Date, [ftime]); // 固定返回某一个时间点
|
||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
|
Date.prototype = _Date.prototype
|
||||||
|
return saf(Date);
|
||||||
}(Date);
|
}(Date);
|
||||||
Date.now = saf(function now(){ return ftime })
|
Date.now = saf(function now(){ return ftime })
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user