jquery loading加载插件

jquery loading加载插件







        $.ajax({
            url: site_url + 'run_task/',
            data: {},
            beforeSend:function () {
                showLoading()
            },
            complete:function(){
                hideLoading()
            },
            success: function (res) {
                console.log(res.data)
         		 var _html = ' ';
                var list = res.data;
                var tpl = $('#task_list_tpl').html();
                for (var i = 0, len = list.length; i < len; i++) {
                    var item = list[i];
                    _html += renderTpl(tpl, item)
                }
                $('.ranger-box2 tbody').html(_html);
        })


你可能感兴趣的:(jquery loading加载插件)