breeze-area
v1.0.0
Published
This is a area plug-in based on native JavaScript developed.
Downloads
9
Readme
breeze-date
这是一个基于原生JavaScript开发的移动端省市县三级联动插件
版本
1.0.0
安装
使用npm下载源文件
npm install breeze-area --save
直接使用script引用
<script src="../dist/breeze-area-1.0.0.min.js"></script>
使用
<script type="text/javascript">
var config1 = {
target: "picker-date1",
type: "area",
ensureCallback: function(value) {
console.log(value);
return value;
}
};
new BreezeArea(config1);
</script>
参数
| 参数 | 类型 | 默认值 | 说明 | |-------------------|----------|----------|-------------------------------------| | target | String | “picker” | 目标元素id | | currentValue | Array | 0 | 当前地区 | | ensureCallback | Function | 空函数 | 点击确定之后执行回调函数 |
演示
如果你感觉好用,欢迎给我打赏