.Thinkphp ajax填充表格

ajax请求一个html模板文件
后台调用$this->display();输出。

例:

 $.ajax({
            url: "{:U('Wallet/wallet/classify')}", 
            async: true, 
            data: {coin_type: 0}, 
            success: function (result) {
                $('#tableDiv').empty();
                $('#tableDiv').html(result);
            }
        });

猜你喜欢

转载自blog.csdn.net/hyb1234hi/article/details/83444814