本文介绍了jQuery的:JSON结果到列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我返回了以下JSON:

{"aaData":[[视觉广场","KE","JKIA","KE",我自己"],["987大道","KE","654大道","KE" ,笔记本电脑"],["Merimela","UG",内罗毕","KE",古董"],[昂路","KE","JKIA","KE","Walter"] ]}

这是四个记录,即

这是第一条记录 ["Vision Plaza","KE","JKIA","KE",我自己"] ,这是第二条记录 ["987 Avenue","KE," 654 Avenue," KE," Laptops] ,这是第三条记录 [" Merimela," UG," Nairobi," KE,"古董] ,这是第四条记录 [昂道","KE","JKIA","KE",沃尔特"]

如何在列表视图中显示这些记录,而每个记录都在其自己的列表视图节点(li)中?
我想使用jquery

I have the following JSON returned:

{"aaData":[["Vision Plaza","KE ","JKIA","KE ","Myself"],["987 Avenue","KE ","654 Avenue","KE ","Laptops"],["Merimela","UG ","Nairobi","KE ","Antiques"],["Ngong Road","KE ","JKIA","KE ","Walter"]]}

These are four records i.e

This is the first record ["Vision Plaza","KE ","JKIA","KE ","Myself"], This is the second record ["987 Avenue","KE ","654 Avenue","KE ","Laptops"], This is the third record ["Merimela","UG ","Nairobi","KE ","Antiques"], This is the fourth record ["Ngong Road","KE ","JKIA","KE ","Walter"],

How do I display these records in a listview with each record in its own listview node (li)?
I want to display it in an MVC view using jquery

推荐答案

var optHtml = "<select id="someListBox">";




这篇关于jQuery的:JSON结果到列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 05:39