jQuery MiniUI

 找回密码
 立即注册
查看: 4175|回复: 3
打印 上一主题 下一主题

单选按钮组怎么填上字典表啊 [复制链接]

Rank: 3Rank: 3

跳转到指定楼层
楼主
发表于 2013-11-25 09:47:02 |只看该作者 |倒序浏览
<div class="mini-radiobuttonlist" repeatItems="2" repeatLayout="table" repeatDirection="vertical"
    textField="text" valueField="id" value="cn"
    url="../data/countrys.txt" >
</div>
单选按钮组怎么填上字典表啊,

Rank: 8Rank: 8

沙发
发表于 2013-11-25 10:01:54 |只看该作者
例子里面的就是啊

是一个数组,里面是一个key value的对象
  1. [
  2.     { "id": "usa", "text": "美国" },
  3.     { "id": "cn", "text": "中国" },
  4.     { "id": "jp", "text": "日本" },
  5.     { "id": "en", "text": "英国" },
  6.     { "id": "de", "text": "德国" },
  7.     { "id": "fr", "text": "法国" },
  8.         { "id": "ca", "text": "加拿大" },
  9.         { "id": "at", "text": "奥地利" },
  10.         { "id": "ch", "text": "瑞士" }
  11. ]
复制代码

Rank: 3Rank: 3

板凳
发表于 2013-11-25 11:33:17 |只看该作者
factory 发表于 2013-11-25 10:01
例子里面的就是啊

是一个数组,里面是一个key value的对象

你误解了我的意思了,我是要直接在表中取到的数据,不是写死的txt文档。

Rank: 8Rank: 8

地板
发表于 2013-11-25 11:55:12 |只看该作者
Soft_Vigorous 发表于 2013-11-25 11:33
你误解了我的意思了,我是要直接在表中取到的数据,不是写死的txt文档。 ...

没区别的啊..那你后台返回这样的json字符串好了

http://www.miniui.com/demo/#src=combobox/linkage-combo.html

这个是服务端的获取数据

Archiver|普加软件

GMT+8, 2025-7-13 04:58 , Processed in 1.036926 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部