1

我正在尝试使用以下代码:

var list_id = "Cust";
var page_id = "SubPageCust";
var show = "Company";
$.ajax({            

    url: "sap.php",
    dataType: "json",
    type: "POST",
    success: function(data) {
                   var output = '';
                   $('#' + list_id).empty(); 
                   var value1 = "value." + show;
                   $.each(data, function(index, value){

                         output += '<li><a href="#' + value.show
                         +'" data-transition="slide">' + value.show + '</a></li>';

                   });  
    $('#' + list_id).append(output).listview('refresh');

JSON 标题为 Company:Company。有谁知道如何动态使用 value.title ?

问候

4

0 回答 0