You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
401 B
20 lines
401 B
|
3 years ago
|
/**
|
||
|
|
* wxs getRegExp
|
||
|
|
*/
|
||
|
|
function getRegExp () {
|
||
|
|
var args = Array.prototype.slice.call(arguments);
|
||
|
|
args.unshift(RegExp);
|
||
|
|
return new (Function.prototype.bind.apply(RegExp, args))()
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* wxs getDate
|
||
|
|
*/
|
||
|
|
function getDate () {
|
||
|
|
var args = Array.prototype.slice.call(arguments);
|
||
|
|
args.unshift(Date);
|
||
|
|
return new (Function.prototype.bind.apply(Date, args))()
|
||
|
|
}
|
||
|
|
|
||
|
|
export { getDate, getRegExp };
|