Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-boss
Commits
fd6b5230
Commit
fd6b5230
authored
Nov 06, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
756ce1b0
22454d0a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
79 additions
and
18 deletions
+79
-18
areaSelect.js
miniprogram/pages/areaSelect/areaSelect.js
+16
-4
areaSelect.ts
miniprogram/pages/areaSelect/areaSelect.ts
+14
-3
areaSelect.wxml
miniprogram/pages/areaSelect/areaSelect.wxml
+1
-1
AreaSelect.js
miniprogram/pages/components/AreaSelect/AreaSelect.js
+17
-4
AreaSelect.ts
miniprogram/pages/components/AreaSelect/AreaSelect.ts
+14
-3
AreaSelect.wxml
miniprogram/pages/components/AreaSelect/AreaSelect.wxml
+1
-1
util.js
miniprogram/utils/util.js
+9
-2
util.ts
miniprogram/utils/util.ts
+7
-0
No files found.
miniprogram/pages/areaSelect/areaSelect.js
View file @
fd6b5230
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
fetch_1
=
require
(
"../../api/fetch"
);
var
util_1
=
require
(
"../../utils/util"
);
Page
({
data
:
{
selected
:
''
,
...
...
@@ -52,12 +53,23 @@ Page({
});
},
inputHandle
:
function
(
e
)
{
var
_this
=
this
;
var
value
=
e
.
detail
.
value
;
console
.
log
(
e
,
value
);
util_1
.
delay
(
function
()
{
_this
.
getFilterListByName
(
value
);
},
500
);
},
confirmHandle
:
function
(
e
)
{
var
value
=
e
.
detail
.
value
;
console
.
log
(
e
,
value
);
this
.
getFilterListByName
(
value
);
},
getFilterListByName
:
function
(
name
)
{
var
filterList
=
[];
if
(
valu
e
)
{
if
(
nam
e
)
{
filterList
=
this
.
data
.
areaList
.
filter
(
function
(
item
)
{
return
item
[
'areaName'
].
includes
(
valu
e
);
return
item
[
'areaName'
].
includes
(
nam
e
);
});
}
else
{
...
...
@@ -103,4 +115,4 @@ Page({
wx
.
navigateBack
({
delta
:
1
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFyZWFTZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBNEM7QUFHNUMsSUFBSSxDQUFDO0lBSUgsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLEVBQUU7UUFDWixhQUFhLEVBQUUsRUFBRTtRQUNqQixRQUFRLEVBQUUsRUFBRTtRQUNaLFVBQVUsRUFBRSxFQUFFO1FBQ2QsVUFBVSxFQUFFLEVBQUU7S0FDZjtJQUtELE1BQU0sRUFBRSxVQUFTLE9BQU87UUFDdEIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNiLElBQUEsK0JBQVUsRUFBRSxxQkFBSyxDQUFhO1FBQ3RDLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztRQUNyQixJQUFJLENBQUMsT0FBUSxDQUFDO1lBQ1osVUFBVSxZQUFBO1lBQ1YsUUFBUSxFQUFFLEtBQUs7U0FDaEIsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUlELE1BQU0sRUFBRSxjQUFZLENBQUM7SUFDckIsYUFBYTtRQUFiLGlCQStCQztRQTlCQyxpQkFBUyxDQUFDO1lBQ1IsR0FBRyxFQUFFLHlCQUF5Qjt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HtcbiAgICBiYXNlRmV0Y2goe1xuICAgICAgdXJsOiAnL2RjeHkvYmFzZUFyZWEvcXVlcnlBbGwnLFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICBpZiAocmVzLmRhdGEpIHtcbiAgICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICAgIGFyZWFMaXN0OiByZXMuZGF0YSxcbiAgICAgICAgICAgIGZpbHRlckxpc3Q6IHJlcy5kYXRhLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGlmICh0aGlzLmRhdGEuc2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGxldCBpbmRleCA9IHJlcy5kYXRhLmZpbmRJbmRleChcbiAgICAgICAgICAgICAgaXRlbSA9PiBpdGVtLmlkID09IHRoaXMuZGF0YS5zZWxlY3RlZCxcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyh0aGlzLmRhdGEuc2VsZWN0ZWQsaW5kZXgpXG4gICAgICAgICAgICBpZiAoaW5kZXggPiAtMSkge1xuICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgIHNlbGVjdGVkSW5kZXg6IGluZGV4LFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgICBhcmVhTGlzdDogW10sXG4gICAgICAgICAgICBmaWx0ZXJMaXN0OiBbXSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmRldGFpbDtcbiAgICBjb25zb2xlLmxvZyhlLCB2YWx1ZS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XMuZGF0YSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICBpZiAodGhpcy5kYXRhLnNlbGVjdGVkKSB7XG4gICAgICAgICAgICBsZXQgaW5kZXggPSByZXMuZGF0YS5maW5kSW5kZXgoXG4gICAgICAgICAgICAgIGl0ZW0gPT4gaXRlbS5pZCA9PSB0aGlzLmRhdGEuc2VsZWN0ZWQsXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgY29uc29sZS5sb2codGhpcy5kYXRhLnNlbGVjdGVkLCBpbmRleCk7XG4gICAgICAgICAgICBpZiAoaW5kZXggPiAtMSkge1xuICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgIHNlbGVjdGVkSW5kZXg6IGluZGV4LFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgICBhcmVhTGlzdDogW10sXG4gICAgICAgICAgICBmaWx0ZXJMaXN0OiBbXSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmRldGFpbDtcbiAgICBjb25zb2xlLmxvZyhlLCB2YWx1ZSk7XG4gICAgZGVsYXkoKCkgPT4ge1xuICAgICAgdGhpcy5nZXRGaWx0ZXJMaXN0QnlOYW1lKHZhbHVlKTtcbiAgICB9LCA1MDApO1xuICB9LFxuICBjb25maXJtSGFuZGxlKGUpIHtcbiAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmRldGFpbDtcbiAgICBjb25zb2xlLmxvZyhlLCB2YWx1ZSk7XG4gICAgdGhpcy5nZXRGaWx0ZXJMaXN0QnlOY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ICAvLyB9KTtcbiAgICAvLyB0aGlzLnRyaWdnZXJFdmVudCgnY2hhbmdlJywgeyB2YWx1ZSB9LCB7fSk7XG4gICAgdmFyIHBhZ2VzID0gZ2V0Q3VycmVudFBhZ2VzKCk7XG4gICAgdmFyIHByZXZQYWdlID0gcGFnZXNbcGFnZXMubGVuZ3RoIC0gMl07IC8v5LiK5LiA5Liq6aG16Z2iXG4gICAgbGV0IGVudGl0eSA9IHt9O1xuICAgIGlmICh2YWx1ZSkge1xuICAgICAgZW50aXR5ID0ge1xuICAgICAgICBpZDogdmFsdWUsXG4gICAgICAgIG5hbWU6IHRoaXMuZGF0YS5maWx0ZXJMaXN0W3RoaXMuZGF0YS5zZWxlY3RlZEluZGV4XS5hcmVhTmFtZSxcbiAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgIGVudGl0eSA9IHsgaWQ6ICcnLCBuYW1lOiAnJyB9O1xuICAgIH1cbiAgICBpZiAodGhpcy5kYXRhLm1ldGhvZE5hbWUgJiYgcHJldlBhZ2VbdGhpcy5kYXRhLm1ldGhvZE5hbWVdKSB7XG4gICAgICBwcmV2UGFnZVt0aGlzLmRhdGEubWV0aG9kTmFtZV0oZW50aXR5KTtcbiAgICB9XG4gICAgd3gubmF2aWdhdGVCYWNrKHsgZGVsdGE6IDEgfSk7XG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
miniprogram/pages/areaSelect/areaSelect.ts
View file @
fd6b5230
import
{
baseFetch
}
from
'../../api/fetch'
;
import
{
delay
}
from
'../../utils/util'
;
// miniprogram/pages/areaSelect/areaSelect.js
Page
({
...
...
@@ -43,7 +44,7 @@ Page({
let
index
=
res
.
data
.
findIndex
(
item
=>
item
.
id
==
this
.
data
.
selected
,
);
console
.
log
(
this
.
data
.
selected
,
index
)
console
.
log
(
this
.
data
.
selected
,
index
);
if
(
index
>
-
1
)
{
this
.
setData
({
selectedIndex
:
index
,
...
...
@@ -64,10 +65,20 @@ Page({
inputHandle
(
e
)
{
const
{
value
}
=
e
.
detail
;
console
.
log
(
e
,
value
);
delay
(()
=>
{
this
.
getFilterListByName
(
value
);
},
500
);
},
confirmHandle
(
e
)
{
const
{
value
}
=
e
.
detail
;
console
.
log
(
e
,
value
);
this
.
getFilterListByName
(
value
);
},
getFilterListByName
(
name
:
string
)
{
let
filterList
=
[];
if
(
valu
e
)
{
if
(
nam
e
)
{
filterList
=
this
.
data
.
areaList
.
filter
(
item
=>
item
[
'areaName'
].
includes
(
valu
e
),
item
[
'areaName'
].
includes
(
nam
e
),
);
}
else
{
filterList
=
this
.
data
.
areaList
;
...
...
miniprogram/pages/areaSelect/areaSelect.wxml
View file @
fd6b5230
<!-- miniprogram/pages/areaSelect/areaSelect.wxml -->
<view class="areaselect-pickBox">
<view class="areaselect-pickFilter">
<input class="areaselect-pickInput" type="text" bind
confirm="input
Handle" />
<input class="areaselect-pickInput" type="text" bind
input="inputHandle" bindconfirm="confirm
Handle" />
<view class="areaselect-pickBtn" bindtap="bindPickerChange">确认</view>
</view>
<view class="areaselect-list">
...
...
miniprogram/pages/components/AreaSelect/AreaSelect.js
View file @
fd6b5230
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
util_1
=
require
(
"../../../utils/util"
);
Component
({
properties
:
{
placeholder
:
{
...
...
@@ -72,10 +74,21 @@ Component({
var
_this
=
this
;
var
value
=
e
.
detail
.
value
;
console
.
log
(
e
,
value
);
util_1
.
delay
(
function
()
{
_this
.
getFilterListByName
(
value
);
},
500
);
},
confirmHandle
:
function
(
e
)
{
var
value
=
e
.
detail
.
value
;
console
.
log
(
e
,
value
);
this
.
getFilterListByName
(
value
);
},
getFilterListByName
:
function
(
name
)
{
var
_this
=
this
;
var
filterList
=
[];
if
(
valu
e
)
{
if
(
nam
e
)
{
filterList
=
this
.
data
.
range
.
filter
(
function
(
item
)
{
return
item
[
_this
.
data
.
rangeKey
].
includes
(
valu
e
);
return
item
[
_this
.
data
.
rangeKey
].
includes
(
nam
e
);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0YSEoe1xuICAgICAgICBzaG93UGlja2VyVmlldzogZmFsc2UsXG4gICAgICB9KTtcbiAgICAgIHRoaXMudHJpZ2dlckV2ZW50KCdjaGFuZ2UnLCB7IHZhbHVlIH0sIHt9KTtcbiAgICB9LFxuICAgIHNlbGVjdGVkSGFuZGxlKGUpIHtcbiAgICAgIGNvbnN0IHsgdmFsdWUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgY29uc29sZS5sb2coZSwgdmFsdWUpO1xuICAgICAgaWYgKHRoaXMuZGF0YS5zZWxlY3RlZEluZGV4ID09PSB2YWx1ZSkge1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlbGVjdGVkOiAnJyxcbiAgICAgICAgICBzZWxlY3RlZEluZGV4OiAnJyxcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlbGVjdGVkOiB0aGlzLmRhdGEucmFuZ2VbdmFsdWVdLmlkLFxuICAgICAgICAgIHNlbGVjdGVkSW5kZXg6IHZhbHVlLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
miniprogram/pages/components/AreaSelect/AreaSelect.ts
View file @
fd6b5230
import
{
delay
}
from
"../../../utils/util"
;
// pages/components/AreaSelect/AreaSelect.js
Component
({
properties
:
{
...
...
@@ -70,15 +72,24 @@ Component({
inputHandle
(
e
)
{
const
{
value
}
=
e
.
detail
;
console
.
log
(
e
,
value
);
delay
(()
=>
{
this
.
getFilterListByName
(
value
);
},
500
);
},
confirmHandle
(
e
)
{
const
{
value
}
=
e
.
detail
;
console
.
log
(
e
,
value
);
this
.
getFilterListByName
(
value
);
},
getFilterListByName
(
name
:
string
)
{
let
filterList
=
[];
if
(
valu
e
)
{
if
(
nam
e
)
{
filterList
=
this
.
data
.
range
.
filter
(
item
=>
item
[
this
.
data
.
rangeKey
].
includes
(
valu
e
),
item
[
this
.
data
.
rangeKey
].
includes
(
nam
e
),
);
}
else
{
filterList
=
this
.
data
.
range
;
}
this
.
setData
({
filterList
,
});
...
...
miniprogram/pages/components/AreaSelect/AreaSelect.wxml
View file @
fd6b5230
...
...
@@ -12,7 +12,7 @@
<view class="areaselect-pickView {{showPickerView?'show':''}}" bindtap="maskClickHandle">
<view class="areaselect-pickBox {{showPickerView?'show':''}}" catchtap="innerClickHandle">
<view wx:if="{{showPickerView}}" class="areaselect-pickFilter">
<input class="areaselect-pickInput" type="text" bind
confirm="input
Handle" />
<input class="areaselect-pickInput" type="text" bind
input="inputHandle" bindconfirm="confirm
Handle" />
<view class="areaselect-pickBtn" bindtap="bindPickerChange">确认</view>
</view>
<view class="areaselect-list">
...
...
miniprogram/utils/util.js
View file @
fd6b5230
...
...
@@ -33,4 +33,11 @@ var joinComma = function (num) {
}
return
result
.
join
(
''
);
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQkFBMkIsSUFBVTtJQUNuQyxJQUFNLElBQUksR0FBRyxJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDaEMsSUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxHQUFHLENBQUMsQ0FBQztJQUNsQyxJQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDM0IsSUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDO0lBQzdCLElBQU0sTUFBTSxHQUFHLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNqQyxJQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUM7SUFFakMsTUFBTSxD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4gICk7XG59XG5cbmNvbnN0IGZvcm1hdE51bWJlciA9IChuOiBudW1iZXIpID0+IHtcbiAgY29uc3Qgc3RyID0gbi50b1N0cmluZygpO1xuICByZXR1cm4gc3RyWzFdID8gc3RyIDogJzAnICsgc3RyO1xufTtcblxuZXhwb3J0IGNvbnN0IGZvcm1hdFByaWNlID0gKG46IG51bWJlcikgPT4ge1xuICBjb25zdCBzdHIgPSBuLnRvRml4ZWQoMik7XG4gIGxldCBzdHJBcnIgPSBzdHIuc3BsaXQoJy4nKTtcbiAgcmV0dXJuIGpvaW5Db21tYShzdHJBcnJbMF0pICsgJy4nICsgc3RyQXJyWzFdO1xufTtcblxuY29uc3Qgam9pbkNvbW1hID0gKG51bTogc3RyaW5nKSA9PiB7XG4gIHZhciByZXN1bHQgPSBbXSxcbiAgICBjb3VudGVyID0gMDtcbiAgZm9yIChsZXQgaW5kZXggPSBudW0ubGVuZ3RoIC0gMTsgaW5kZXggPj0gMDsgaW5kZXgtLSkge1xuICAgIGNvdW50ZXIrKztcbiAgICBjb25zdCBlbGVtZW50ID0gbnVtW2luZGV4XTtcbiAgICByZXN1bHQudW5zaGlmdChlbGVtZW50KTtcbiAgICBpZiAoIShjb3VudGVyICUgMykgJiYgaW5kZXggIT0gMCkge1xuICAgICAgcmVzdWx0LnVuc2hpZnQoJywnKTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIHJlc3VsdC5qb2luKCcnKTtcbn07XG4iXX0=
\ No newline at end of file
exports
.
delay
=
(
function
()
{
var
timer
=
0
;
return
function
(
callback
,
ms
)
{
clearTimeout
(
timer
);
timer
=
setTimeout
(
callback
,
ms
);
};
})();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQkFBMkIsSUFBVTtJQUNuQyxJQUFN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b25zdCBqb2luQ29tbWEgPSAobnVtOiBzdHJpbmcpID0+IHtcbiAgdmFyIHJlc3VsdCA9IFtdLFxuICAgIGNvdW50ZXIgPSAwO1xuICBmb3IgKGxldCBpbmRleCA9IG51bS5sZW5ndGggLSAxOyBpbmRleCA+PSAwOyBpbmRleC0tKSB7XG4gICAgY291bnRlcisrO1xuICAgIGNvbnN0IGVsZW1lbnQgPSBudW1baW5kZXhdO1xuICAgIHJlc3VsdC51bnNoaWZ0KGVsZW1lbnQpO1xuICAgIGlmICghKGNvdW50ZXIgJSAzKSAmJiBpbmRleCAhPSAwKSB7XG4gICAgICByZXN1bHQudW5zaGlmdCgnLCcpO1xuICAgIH1cbiAgfVxuICByZXR1cm4gcmVzdWx0LmpvaW4oJycpO1xufTtcbmV4cG9ydCBjb25zdCBkZWxheSA9IChmdW5jdGlvbigpIHtcbiAgbGV0IHRpbWVyID0gMDtcbiAgcmV0dXJuIGZ1bmN0aW9uKGNhbGxiYWNrOiAoKSA9PiB2b2lkLCBtczogbnVtYmVyKSB7XG4gICAgY2xlYXJUaW1lb3V0KHRpbWVyKTtcbiAgICB0aW1lciA9IHNldFRpbWVvdXQoY2FsbGJhY2ssIG1zKTtcbiAgfTtcbn0pKCk7XG4iXX0=
\ No newline at end of file
miniprogram/utils/util.ts
View file @
fd6b5230
...
...
@@ -37,3 +37,10 @@ const joinComma = (num: string) => {
}
return
result
.
join
(
''
);
};
export
const
delay
=
(
function
()
{
let
timer
=
0
;
return
function
(
callback
:
()
=>
void
,
ms
:
number
)
{
clearTimeout
(
timer
);
timer
=
setTimeout
(
callback
,
ms
);
};
})();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment