提交 9a8f2446 编写于 作者: fxy060608's avatar fxy060608

fix(wxs): const => var

上级 09ecd089
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* wxs getRegExp * wxs getRegExp
*/ */
function getRegExp () { function getRegExp () {
const args = Array.prototype.slice.call(arguments); var args = Array.prototype.slice.call(arguments);
args.unshift(RegExp); args.unshift(RegExp);
return new (Function.prototype.bind.apply(RegExp, args))() return new (Function.prototype.bind.apply(RegExp, args))()
} }
...@@ -11,7 +11,7 @@ function getRegExp () { ...@@ -11,7 +11,7 @@ function getRegExp () {
* wxs getDate * wxs getDate
*/ */
function getDate () { function getDate () {
const args = Array.prototype.slice.call(arguments); var args = Array.prototype.slice.call(arguments);
args.unshift(Date); args.unshift(Date);
return new (Function.prototype.bind.apply(Date, args))() return new (Function.prototype.bind.apply(Date, args))()
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* wxs getRegExp * wxs getRegExp
*/ */
export function getRegExp () { export function getRegExp () {
const args = Array.prototype.slice.call(arguments) var args = Array.prototype.slice.call(arguments)
args.unshift(RegExp) args.unshift(RegExp)
return new (Function.prototype.bind.apply(RegExp, args))() return new (Function.prototype.bind.apply(RegExp, args))()
} }
...@@ -11,7 +11,7 @@ export function getRegExp () { ...@@ -11,7 +11,7 @@ export function getRegExp () {
* wxs getDate * wxs getDate
*/ */
export function getDate () { export function getDate () {
const args = Array.prototype.slice.call(arguments) var args = Array.prototype.slice.call(arguments)
args.unshift(Date) args.unshift(Date)
return new (Function.prototype.bind.apply(Date, args))() return new (Function.prototype.bind.apply(Date, args))()
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册