#HarmonyOS:@ohos.promptAction (弹窗)---onProgressChange

组件实例

@ohos.promptAction (弹窗)

导入模块
ts 复制代码
import promptAction from '@ohos.promptAction'
示例
ts 复制代码
try {
  promptAction.showToast({            
    message: 'Message Info',
    duration: 2000, 
    bottom: 64 //  设置弹窗边框距离屏幕底部的位置
  });
} catch (error) {
  console.error(`showToast args error code is ${error.code}, message is ${error.message}`);
};

onProgressChange

网页加载进度变化时触发该回调。

语法
ts 复制代码
onProgressChange(callback: (event?: { newProgress: number }) => void)
相关推荐
yumgpkpm4 小时前
Acceldata ODP 3.3.6.4 vs CDP Private Cloud Base 7.3.2 对比
大数据·运维·服务器·hadoop·华为·zookeeper·hbase
OH_TPC8 小时前
HarmonyOS APP开发---"菜谱汇"美食菜谱App,需要用到这个库
harmonyos
老陈说编程8 小时前
2. 鸿蒙(HarmonyOS)超级终端与生态
华为·harmonyos
2501_9197490310 小时前
华为鸿蒙免费时钟工具—小羊时钟
华为·harmonyos
aqi0020 小时前
鸿蒙版本的电子书阅读APP开放源码啦
android·华为·ai编程·harmonyos·鸿蒙
xq95271 天前
HDC Assistant 插件横空出世
harmonyos
垆边人似月.1 天前
华为机试题 :两数之和
c++·算法·华为
垆边人似月.1 天前
华为机试题 :有效的括号
c++·算法·华为
高德开放平台1 天前
高德开放平台×华为:一句话,开启腕上打车
华为