Files

17 lines
380 B
JavaScript
Raw Permalink Normal View History

2026-02-10 08:05:03 +08:00
function getRegExp() {
const args = Array.prototype.slice.call(arguments);
args.unshift(RegExp);
return new (Function.prototype.bind.apply(RegExp, args))();
}
/**
* wxs getDate
*/
function getDate() {
const args = Array.prototype.slice.call(arguments);
args.unshift(Date);
return new (Function.prototype.bind.apply(Date, args))();
}
export { getDate, getRegExp };