小编Inq*_*Sab的帖子

砌体不使用动态内容

砌体不能处理我的动态内容,我不知道为什么.我不认为这是我身上的一个错误,至少我已经看了几个小时的代码,我找不到任何不起作用的东西.

//reads listbox.php and cycles through the array calling createbox
function listboxs() {
    $.ajax({
        url: '_php/listbox.php',
        success: function (output) {

            var jsonArray = $.parseJSON(output);

            $.each(jsonArray, function (i, box) {
                createbox(box.id, box.name, box.link, box.description, box.tags);
            });
        }
    });
}

//create the code for 1 box
function createbox(id, name, link, description, tags) {

    var boxHtml = "",
        tagsHtml = "",
        descriptionHtml = "";

    boxHtml = '' + '<div class="box" id="' + id + '">' + '<div class="boxinfo">' + '<label class="boxname"><a href="' + …
Run Code Online (Sandbox Code Playgroud)

html javascript css jquery jquery-masonry

2
推荐指数
1
解决办法
6566
查看次数

标签 统计

css ×1

html ×1

javascript ×1

jquery ×1

jquery-masonry ×1