【问题标题】:Is there any better way to handle list of countries along with their State/Privince/Region?有没有更好的方法来处理国家列表及其州/省/地区?
【发布时间】:2013-02-28 23:04:32
【问题描述】:

我有 Web 应用程序,其中有国家的下拉列表以及州/省/地区的下拉列表。

如果我选择国家,那么应该动态填充其相关的州\省\地区。

人口很容易。

但是随着国际化,我们应该如何以及在哪里维护这些庞大的数据

【问题讨论】:

  • 这是手机版吗?要不然是啥?我会使用 mongoDB 来存储它,因为你对你的情况一无所知,因为也许你正在从软盘启动程序?他们很慢
  • 不适用于移动端,它适用于基于 Spring 的 Web 应用程序

标签: java javascript spring-mvc


【解决方案1】:
step 1 : create data base for country names and related state names
step 2 : make ajax call on select box for country on onchange event
step 3 : the ajax call hits the db and return with the state names
step 4 : set the value for state select box with the received response from ajax call

【讨论】:

猜你喜欢
  • 2011-01-04
  • 2011-04-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-03-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多