代码被剪切了
This commit is contained in:
parent
dfd1e98d00
commit
e905489157
|
@ -581,7 +581,10 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//查询学校
|
||||||
|
$("input[name='province']").on('input', function (e) {
|
||||||
|
throttle(shcool_search_fn,window,e);
|
||||||
|
});
|
||||||
|
|
||||||
function throttle(method,context,e){
|
function throttle(method,context,e){
|
||||||
clearTimeout(method.tId);
|
clearTimeout(method.tId);
|
||||||
|
@ -603,10 +606,7 @@
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
schoolsResult = data.schools;
|
schoolsResult = data.schools;
|
||||||
count = data.count; //查询学校
|
count = data.count;
|
||||||
$("input[name='province']").on('input', function (e) {
|
|
||||||
throttle(shcool_search_fn,window,e);
|
|
||||||
});
|
|
||||||
maxPage = Math.ceil(count/100) //最大页码值
|
maxPage = Math.ceil(count/100) //最大页码值
|
||||||
if(schoolsResult.length != undefined && schoolsResult.length != 0) {
|
if(schoolsResult.length != undefined && schoolsResult.length != 0) {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
|
Loading…
Reference in New Issue