Coder Social home page Coder Social logo

Comments (5)

xfhxbb avatar xfhxbb commented on June 19, 2024 1

area1.value=[0,2,0];这句仅仅是控制了省市县弹出时的位置,不影响input真实的value,所以初始化的时候还是需要额外设置好input的value值与其对应

from larea.

xfhxbb avatar xfhxbb commented on June 19, 2024

直接在input标签中写value值即可,如果数据源存在与value值匹配的字符串,则插件弹出后会自动调整到对应位置

from larea.

riaas avatar riaas commented on June 19, 2024

不好意思,我先前试过这样操作,但是没有效果,今天再试了下,还是没有:
qq 20160413114846
这样没有效果。

from larea.

xfhxbb avatar xfhxbb commented on June 19, 2024

哦,不好意思,我忘记了,这个版本需要用实例化对象中的value去控制,比如:
var area1 = new LArea();
area1.init(...);
area1.value=[0,2,0];
则插件弹出的默认位置为,第一个省,第3个市,第1个区;具体的位置寻找我暂时没有封装,需要你自己去控制了

from larea.

riaas avatar riaas commented on June 19, 2024

非常感谢,我的js也不是很精通。

from larea.

Related Issues (20)

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.