首页 新闻 搜索 专区 学院

急,在线坐等,求个大牛教下转换格式还有数据渲染。。

0
悬赏园豆:100 [已关闭问题] 关闭于 2016-09-22 22:22
复制代码
jQuery1124025906439689060234_1474437929194({"code":"0","msg":"",
"data":[{"id":"1","parent_id":"0","level" 5 :"1","name":"游戏","child":[{"id":"2","parent_id":"1","level":"2","name":"英雄联盟"},{"id":"3","parent_id":"1","level":"2","name":"魔兽世界"}]},
{"id":"4","parent_id" 6 :"0","level":"1","name":"户外":[{"id":"5","parent_id":"4",

"level":"2","name":"露营"},{"id":"6","parent_id":"4","level":"2","name":"探险"}]}]}) 后台传出的数据 求个大牛把上面给的数据用ajax转化一下。。然后动态创建option标签渲染到select里,联动的那种。。游戏对应的是英雄联盟和魔兽世界,户外对应的露营和探险。。。求大神教= =坐等,,超急,谢谢啦。。。

<div class="naohiro-nickname"><span>直播昵称</span><input type="text" placeholder="请填写观众看到的直播昵称">直播类型
<select class="selection">
</select>
<select class="options">
</select>
</div>

 

html部分

 
复制代码
鸭子的失心疯的主页 鸭子的失心疯 | 初学一级 | 园豆:7
提问于:2016-09-22 21:34
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册