【文件属性】:
文件名称:中国各大城市和县区快速选择js插件
文件大小:62KB
文件格式:ZIP
更新时间:2020-10-11 10:12:19
中国城市
中国各大城市和县区快速选择js插件
$:function (arg, context) {
var tagAll, n, eles = [], i, sub = arg.substring(1);
context = context || document;
if (typeof arg == 'string') {
switch (arg.charAt(0)) {
case '#':
return document.getElementById(sub);
break;
case '.':
if (context.getElementsByClassName) return context.getElementsByClassName(sub);
tagAll = Vcity._m.$('*', context);
n = tagAll.length;
for (i = 0; i < n; i++) {
if (tagAll[i].className.indexOf(sub) > -1) eles.push(tagAll[i]);
}
return eles;
break;
default:
return context.getElementsByTagName(arg);
break;
}
}
},
【文件预览】:
中国各大城市和县区快速选择
----index.html(2KB)
----js()
--------cityselect.js(31KB)
----related()
--------2.jpg(22KB)
--------1.jpg(24KB)
----fonts()
--------icomoon.woff(1KB)
--------icomoon.ttf(1KB)
--------icomoon.svg(2KB)
--------icomoon.eot(2KB)
----readme.html(865B)
----css()
--------cityselect.css(2KB)
--------normalize.css(2KB)
--------htmleaf-demo.css(6KB)