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>