HTML小案例

目录

表格的展示

选项卡的展示和隐藏

个人资料的展开与显示


表格的展示

        
书名 作者 出版社 ISBN 价格
             let tbody = $('#bookLibary');

                tbody.empty();
                $.each(response.data.data, function (index, book) {
                    let row = $('');
                    let name = $('').text(book.name);
                    let author = $('').text(book.author);
                    let publish = $('').text(book.publish);
                    let isbn = $('').text(book.isbn);
                    let price = $('').text(book.price);
                    let successBtn = $('');
                    let infoBtn = $('');
                    let warningBtn = $('');
                    let btnColumn = $('').append(successBtn, infoBtn, warningBtn);
                    row.append(name, author, publish, isbn, price, btnColumn);
                    tbody.append(row);

                });

选项卡的展示和隐藏




    
    Title
    
    
    





1
2
3

个人资料的展开与显示




    
    Title
    
    



您好

你可能感兴趣的:(HTML实现,html,数学建模,前端)