Giter Site home page Giter Site logo

a-simple-cityseleter's Introduction

#移动端省市区选择控件 ##效果截图 image

插件依赖jquery或者zepto库

模拟原生UI以及交互,减少用户操作,目前只支持三级联动

这是一个简单的移动端省市区选择控件,由于工作项目中的一个功能需求,网上找不到相似的组件,所以自己造轮子

时间有限写得简陋,如果有bug欢迎提出来 ##用法 ###带默认选中值

$(".pick-btn").cityPicker({
		prov:"广东省",
		city:"广州市",
		dist:"海珠区",
		confirm:function(data){
			console.log(data.prov+data.city+data.dist);
		}
});

###不带默认选中值

$(".pick-btn").cityPicker({
		confirm:function(data){
			console.log(data.prov+data.city+data.dist);
		}
});

a-simple-cityseleter's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.