خرید بک لینک

Vote count: 0

I'm using the wikimedia API to grab text information from a table on a wiki, so it can be set into a dataset for every row. I am able to get the table to show up (with rows/columns) on HTML, but I'm not sure how to set the data into an array or other type of dataset locally. The code is below:

$(document).ready(function(){

$.ajax({
    type: "GET",
    url: "http://wiki.teamliquid.net/smash/api.php?action=parse&format=json&prop=text&section=0&pageid=4887&callback=?",
    contentType: "application/json; charset=utf-8",
    async: false,
    dataType: "json",
    success: function (data, textStatus, jqXHR) {
    var markup = data.parse.text["*"];
    var i = $('<tbody></tbody>').html(markup);



    // remove any references
    i.find('sup').remove();

    i.find('img').remove(); //remove images 
    i.find('a').each(function() { $(this).replaceWith($(this).html()); }); //remove links 

    x = $('#article').html($(i).find('tr')); //find all rows 
    //console.log(x.parse.text.tr); 
    },
    error: function (errorMessage) {
    }   
});

});

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 29 خرداد 1395 ساعت: 6:50

صفحه بندی