当前位置: 首页 > news >正文

建网站怎么起名字网站流量提升

建网站怎么起名字,网站流量提升,网站推广策略和营销策略,建网站的步骤及方法page "/virtualScrolling" using BlazorApp.Data<h3>Table 虚拟滚动行</h3> <h4>Table 组件显示大数据时通常采用分页加载数据&#xff0c;还有一种虚拟行的技术类似手机滚动到底部时后台自动加载数据</h4><p>快速滚动时显示行占位&am…

@page "/virtualScrolling"
@using BlazorApp.Data<h3>Table 虚拟滚动行</h3>
<h4>Table 组件显示大数据时通常采用分页加载数据,还有一种虚拟行的技术类似手机滚动到底部时后台自动加载数据</h4><p>快速滚动时显示行占位,提升用户体验</p><p>PageItems:设置页大小,Height:设置Table的高度,ScrollMode="ScrollMode.Virtual"开启虚拟滚动功能</p><p>当前页大小: @PageCount</p><Table TItem="Foo" Height="300" PageItems="20" IsBordered="true" IsStriped="true" ScrollMode="ScrollMode.Virtual" OnQueryAsync="OnQueryAsync"><TableColumns><TableColumn @bind-Field="@context.DateTime" Width="180" /><TableColumn @bind-Field="@context.Name" /><TableColumn @bind-Field="@context.Address" Readonly="true" /><TableColumn @bind-Field="@context.Education" /><TableColumn @bind-Field="@context.Count" Editable="false" /><TableColumn @bind-Field="@context.Complete" /></TableColumns>
</Table>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using System.Net.Http;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.AspNetCore.Components.Routing;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.Web.Virtualization;
using Microsoft.JSInterop;
using BlazorApp;
using BlazorApp.Shared;
using BootstrapBlazor.Components;
using BlazorApp.Data;
using System.Diagnostics.CodeAnalysis;namespace BlazorApp.Pages
{public partial class VirtualScrolling{[NotNull]private List<Foo>? DBList { get; set; }[NotNull]private int PageCount { get; set; }/// <summary>/// OnInitialized/// </summary>protected override void OnInitialized(){base.OnInitialized();//模拟数据库DBList = Foo.GenerateFoo(10000);}private async Task<QueryData<Foo>> OnQueryAsync(QueryPageOptions options){//控制加载数据,避免卡死await Task.Delay(200);//从数据库读取分页的总数int count = DBList.Count;//分页获取var items = DBList.Skip(options.StartIndex).Take(options.PageItems);PageCount = options.PageItems;//异步方法需要主动调用这个方法,告诉前台Blazor的状态已经改变StateHasChanged();return new QueryData<Foo>(){Items = items,TotalCount = count};}}
}

http://www.yayakq.cn/news/820280/

相关文章:

  • 网站建设包括哪些甘肃县门户网站建设方案
  • 思创医惠网站建设wordpress中接入支付宝
  • 深圳宝安网站设计上位机软件开发教程
  • 网站名字词网页动画是如何制作出来的
  • 备案的网站名称可以改吗做外贸上阿里巴巴什么网站
  • 网站做盗版视频赚钱吗服务网络是什么
  • 盘锦做网站企业建立企业网站的形式
  • 中国建设银行网站进不去外国人做的古文字网站
  • 上海网站关键词优化网站网站建设教程
  • 服务器上发布网站wordpress .net源码
  • wordpress 登陆查看重庆seo网站建设
  • 济南智能网站建设竞价是什么工作
  • 合肥网站设计服html5网页制作模板免费下载
  • 企业局域网做网站屏蔽广告素材
  • 网站建设开票单位wordpress淘宝客采集插件
  • 大连知名互联网公司潍坊网站seo外包
  • 网站开发 工作量上海进一步优化
  • 城乡建设网站报建需要什么短视频获客
  • 网站优化网站优化网站建设整体方案
  • 万网网站加速太原网站制作机构
  • 长春在线制作网站wordpress 修改字体
  • 网站添加在线支付网站建设客网站
  • 代做网站修改维护设计公司logo软件
  • html5笑话网站源码香奈儿网站建设的目标
  • 做网站的封面图片哪里才有公司做一个网站多少钱
  • 做网站要学会什么可以免费发布信息的网站有哪些
  • 物流公司官方网站好的网站怎么建设
  • 自助建站帮助网wordpress 格局调整
  • 江门公司网站建设怎么制作属于自己的网址
  • 江西南昌网站建设服务网站推广无锡