首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏每日一篇技术文章

    weex-19-refresh组件

    --下拉刷新组件--> <refresh @pullingdown="pullingdown" :display="showLoading" @refresh="onrefresh" class ="refresh"> <! 刷新事件,当下拉的距离大于组件的高度,如果此时没有放✋,不会触发,一旦放手就会触发这个事件 3.display 决定了下拉组件的悬停显示效果,当触发refresh 事件时,务必设置这个值为'show ',这样就会出现<refresh>悬停在list或者scroller组件头部的效果,这个时候,我们请求网络数据,一旦完成,就将display的值设置为hide,悬停动画消失 4.如果子组件为<loading-indicator ,如果不指定高度,以子组件的高度为自己的高度。

    1.5K10发布于 2018-09-14
  • 来自专栏鸿蒙开发笔记

    ArkUI滚动类组件-下拉刷新(Refresh

    下拉刷新也是一个很常用的功能,比如我们在浏览新闻时可以下拉刷新最新资讯等,ArkUI开发框架给我们提供了下拉刷新组件Refresh,它的用法很简单,给需要下拉刷新的组件外包上 Refresh 就可以了 Refresh定义介绍interface RefreshInterface { (value: { refreshing: boolean; offset? ,RefreshStatus 定义了以下 5 种状态:Inactive:组件的起始状态,当手指点击屏幕时触发此状态。 Drag:下拉组件但没有到达刷新距离的状态。OverDrag:下拉组件距离超过了刷新距离的状态。Refresh:正在刷新状态。Done:刷新结束。 onRefreshing:组件进入 Refresh 状态后对外的回调,一般在该回调里进行网络请求等操作。

    51220编辑于 2024-10-07
  • 来自专栏鸿蒙开发笔记

    HarmonyOS 开发实践 —— 基于Refresh组件的下拉刷新

    效果图方案整体思路:首先需要用装饰器@builder自定义构建一个函数,然后跟refresh的接口builder进行绑定Refresh({refreshing:\$\$this.isRefreshing ,builder:this.customRefreshComponent()}),最后将通过refresh的系列回调逐步实现下拉过程中图标的动态变化。 根据refresh的builder自定义刷新样式的组件,图标地方使用了两个组件,一个是没有触发刷新状态时显示的logo,另一个是当进入刷新状态时显示的动态loading,这两个组件的显示与隐藏主要通过visibility 核心代码第一步:自定义refresh刷新组件。 // 自定义refresh刷新组件@BuildercustomRefreshComponent() {  Stack() {    Column() {      // 定义图标      Image(

    65520编辑于 2024-11-26
  • 来自专栏全栈程序员必看

    reload与refresh

    window.Refresh() 是刷新,保留之前的缓存内容,重新加载页面,之前存在的东西不会动,没加载上来的东西继续加载.

    1K50编辑于 2022-09-09
  • 来自专栏西二旗一哥

    Some problems with refresh UICollectionView

    reloadData]; [self.collectionView setNeedsLayout]; [self.collectionView layoutIfNeeded]; ---- How to refresh without Animation If you partial refresh with UICollectionView like insert, reload, delete, these methods performWithoutAnimation:^{ [self.collectionView reloadItemsAtIndexPaths:indexPaths]; }]; How to refresh without Animation reference ---- Asynchronous refresh problem If your App contain high-performance rendering failed, once you failed you can call collectionView realoadData to refresh all the UICollectionView

    2.3K30发布于 2018-09-30
  • 来自专栏InvQ的专栏

    Spring bean解析 - refresh

    文章目录 refresh prepareRefresh 属性校验 BeanFactory创建 BeanFactory接口 BeanFactory定制 Bean加载 EntityResolver onRefresh ApplicationListener注册 singleton初始化 ConversionService StringValueResolver LoadTimeWeaverAware 初始化 refresh AbstractApplicationContext.refresh: @Override public void refresh() throws BeansException, IllegalStateException prepareRefresh(); // Tell the subclass to refresh the internal bean factory. alias 加入有一个bean名为componentA-dataSource,但是另一个组件想以componentB-dataSource的名字使用,就可以这样定义: <alias name="componentA-dataSource

    1.7K20发布于 2021-10-09
  • 来自专栏杨焱的专栏

    Spring容器的refresh()

    添加BeanPostProcessor【ApplicationListenerDetector】 6)、添加编译时的AspectJ; 7)、给BeanFactory中注册一些能用的组件 applicationContext.addApplicationListener((ApplicationListener) bean); 7、initMessageSource();初始化MessageSource组件 (做国际化功能;消息绑定,消息解析); 1)、获取BeanFactory 2)、看容器中是否有id为messageSource的,类型是MessageSource的组件 创建一个SimpleApplicationEventMulticaster 4)、将创建的ApplicationEventMulticaster添加到BeanFactory中,以后其他组件直接自动注入 initLifecycleProcessor();初始化和生命周期有关的后置处理器;LifecycleProcessor 默认从容器中找是否有lifecycleProcessor的组件

    55310编辑于 2021-12-07
  • 来自专栏黯羽轻扬

    Fast Refresh 原理剖析

    二.运作机制 Reload 策略 基本的处理策略分为 3 种情况: 如果所编辑的模块仅导出了 React 组件,Fast Refresh 就只更新该模块的代码,并重新渲染对应的组件。 React(组件)树之外的模块引用了,Fast Refresh 会降级成整个刷新(Live Reloading) 根据模块导出内容区分纯组件模块、非组件模块和不纯组件模块,对纯组件模块(只导出 React 组件的模块)支持程度最好,完全支持新 React(v16.x)的函数式组件和Hooks 容错处理 与 Hot Reloading 相比,Fast Refresh 的容错性更强一些: 语法错误:Fast 组件 不纯组件模块,所编辑的模块除导出 React 组件外,还导出了其它东西 特殊的,还可以通过// @refresh reset指令(在源码文件中任意位置加上这行注释)强制重刷(remount),最大限度地保证可用性 react hot loader vs fast refresh 之前为了保留组件状态,支持替换组件 render 部分的 Proxy Component 都不需要了,因为新版 React 对函数式组件

    4.6K10发布于 2020-06-16
  • 来自专栏全栈程序员必看

    html refresh原理,HTML meta refresh 刷新与跳转(重定向)页面

    下面为各位整理了一些HTML meta refresh 刷新与跳转(重定向)页面的例子吧,后面本站长自己也补充了一些js页面刷新与跳转例子吧。 refresh 属性值 — 刷新与跳转(重定向)页面 refresh用于刷新与跳转(重定向)页面 refresh出现在http-equiv属性中,使用content属性表示刷新或跳转的开始时间与跳转的网址 refresh示例 5秒之后刷新本页面: 5秒之后转到梦之都首页: 当然除了这些方法还有js也可以跳转与刷新了,下面既然讲到这个刷新页面了我们就再看看js补充吧 Javascript刷新页面的几种方法 history.go(0) 2 location.reload() 3 location=location 4 location.assign(location) 5 document.execCommand(‘Refresh

    2.9K10编辑于 2022-09-09
  • 来自专栏264

    x264 intra refresh

    左右刷新模式,把dirty region刷新成clean region image.png image.png 上下刷新模式 image.png intra refresh 与 gop码率分布对比曲线 image.png 不同场景码率分布(动态刷新): image.png 码率分布优化 image.png 开了intra refresh 与不开时psnr对比曲线 image.png 多帧参考时刷新

    2.5K20发布于 2019-08-26
  • 来自专栏cwl_Java

    ElasticSearch(7.2.2)-es之refresh操作

    refresh -H 'Content-Type: application/json' -d '{ "displayName": "杨超越" }' curl -X GET localhost:9200/ pretty 修改默认更新时间(默认时间是1s PUT /star/_settings { "index": { "refresh_interval": "5s" } } 将refresh关闭 PUT /star/_settings { "index": { "refresh_interval": "-1" } }

    1.9K20发布于 2019-11-04
  • 来自专栏walterlv - 吕毅的博客

    The VisualBrush of WPF only refresh the visual but not the layout

    I’ve fired this issue into GitHub and this is the link: The VisualBrush only refresh the visual but not visibility changes · Issue #1241 · dotnet/wpf 本文会经常更新,请阅读原文: https://blog.walterlv.com/post/visual-brush-refresh-views-only-but-not-layout-en.html

    32520编辑于 2023-10-22
  • 来自专栏一个会写诗的程序员的博客

    BeanFactory refresh 思想启示

    在这方面,Spring里面核心类AbstractApplicationContext做上下文初始化的refresh方法,给我们做了一个很好的示范: public void refresh() throws prepareRefresh(); // Tell the subclass to refresh the internal bean factory. resetCommonCaches(); } } } 试想下,上面的逻辑,如果是平铺在refresh方法中的,其结果会怎样。

    59510发布于 2019-12-03
  • 来自专栏月亮与二进制

    《iOS Human Interface Guidelines》——Refresh Control

    API NOTE 查看UIRefreshControl Class Reference学习更多关于在你的代码中定义一个刷新控件的内容。

    53720发布于 2021-11-23
  • 来自专栏Material Design组件

    Human Interface Guidelines —— Refresh Content Controls

    自上次参加完回音分享会后,我下定决心要洗心革面乖乖打基础,于是开启了这个part,争取两个月不间断更新,写完Material Design与iOS中的组件(顺便学学英语),以便今后在使用的时候完全不虚 Refresh Content Controls Human Interface Guidelines链接:Refresh Content Controls ? Refresh Content Control Refresh Control 是需要手动启动,并立即重新加载内容的控件,通常出现在 table view 中,无需等待下一次自动内容更新的发生。  Refresh Control 是一种特定类型的activity indicator,默认情况下处于隐藏状态,并且在下拉刷新view时变为可见。 例如,Podcasts 中的 refresh control 使用 title 来告诉人们最近发生的 Podcasts 更新的时间。

    69180发布于 2018-06-21
  • 来自专栏Java架构师必看

    Squid的refresh_pattern配置

    refresh_pattern 的语法是 refresh_pattern [-i] regexp min percent max [options] regexp 就不讲了,大家都明白的;) min 举例: refresh_pattern -i \.gif$   1440    50%     2880      ignore-reload refresh_pattern -i \.jpg$   1440 refresh_pattern -i \.mp3$   1440    50%     2880      ignore-reload refresh_pattern -i \.wmv$   1440 refresh_pattern -i \.swf$   1440    50%     2880      ignore-reload refresh_pattern -i \.mpeg$   1440 refresh_pattern -i \.css$ 10 50% 60 reload-into-ims refresh_pattern -i \.js$ 10 50% 60 reload-into-ims

    1.2K10发布于 2020-09-30
  • 来自专栏程序员小航

    Spring 源码学习 09:refresh 大概流程

    前言 前面的准备工作结束之后,就是进入核心代码 refresh。 源码 public void refresh() throws BeansException, IllegalStateException { // 加锁 synchronized (this.startupShutdownMonitor ) { StartupStep contextRefresh = this.applicationStartup.start("spring.context.refresh"); logger.warn("Exception encountered during context initialization - " + "cancelling refresh 本文简单介绍了 refresh 的流程,并介绍了前两个部分: prepareRefresh 准备上下文信息 obtainFreshBeanFactory 初始化 BeanFactory - <End /

    72710发布于 2020-12-28
  • 来自专栏hml_知识记录

    Spring容器启动核心方法refresh()

    AnnotationConfigEmbeddedWebApplicationContext :Springboot 1.5.x 用的,会重写refresh()方法中的onRefresh(),启动内嵌tomcat AnnotationConfigServletWebServerApplicationContext : Springboot 2.x 用的,同样会重写refresh()方法中的onRefresh(), 容器启动的核心流程都是调用的父类继承而来的refresh()。 refresh()定义了一系列用来容器启动的方法, 不同的上下文类 在 核心步骤不变的情况下, 可能重写 某些个方法,来完成不同的事情,比如springboot使用的上下文类就会重写里面的onRefresh refresh()源码解析 @Override public void refresh() throws BeansException, IllegalStateException { synchronized

    1.1K10编辑于 2022-03-24
  • 来自专栏波波烤鸭

    Spring加载流程源码分析03【refresh

    parent) throws BeansException { super(parent); setConfigLocations(configLocations); if (refresh ) { refresh(); } } refresh介绍   refresh方法的具体实现是在AbstractApplicationContext类中如下: @Override public void beanFactory.ignoreDependencyInterface(ApplicationContextAware.class); ​ // 4)、注册可以解析的自动装配;我们能直接在任何组件中自动注入 : //BeanFactory、ResourceLoader、ApplicationEventPublisher、ApplicationContext /* 其他组件中可以通过下面方式直接注册使用 ContextTypeMatchClassLoader(beanFactory.getBeanClassLoader())); } ​ // 7)、给BeanFactory中注册一些能用的组件

    1.3K30发布于 2019-04-02
  • 来自专栏沁溪源

    Spring学习之浅析refresh()执行逻辑

    下面开始正式踏入refresh方法的整体概览浅析。 先看下refresh()方法总体: @Override public void refresh() throws BeansException, IllegalStateException { this.registerBeanPostProcessors(beanFactory); //初始化ApplicationContext的MessageSource组件 (做国际化功能;消息绑定,消息解析); 获取BeanFactory 判断容器中是否有id为messageSource的,类型是MessageSource的组件; 如果有赋值给messageSource () Spring 源码深度解析 Spring IoC之ApplicationContext中refresh过程

    70622发布于 2020-09-03
领券