app 网络加载提示问题
来源:互联网 发布:福彩3d2016年开奖数据 编辑:程序博客网 时间:2024/06/10 22:58
loading.html
<!DOCTYPE html><html><head><meta charset="utf-8"> <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/> <meta name="format-detection" content="telephone=no,email=no,date=no,address=no"> <title>title</title> <link rel="stylesheet" type="text/css" href="../css/api.css"/> <style> html {width: 100%;height: 100%;background: transparent !important;}body {background: transparent !important;width: 100%;} </style></head><body></body><script type="text/javascript" src="../script/api.js"></script><script type="text/javascript">apiready = function(){};</script></html>
api.openFrame({
name : 'loading',
url : 'loading.html',
rect : {
x : 0,
y : 0,
w : api.winWidth,
h : api.winHeight
}
});
进行网络请求时,提示用户正在进行操作,请等待。一般的做法是弹出一个加载框,api.showProgress(),不推荐这样的做法,因为经常会出现loading框卡死问题。建议做法是Header提示正在加载,整个页面弹出透明遮掩层,不准用户进行操作。
阅读全文
0 0
- app 网络加载提示问题
- 踩坑系列之 为什么自家的app提示网络问题,而其他app都正常
- 网络加载图片问题
- Toast 数据加载,内容加载,网络图片加载提示
- android 网络加载提示进度封装 View
- App全局弹框提示的问题
- 页面加载友好提示的问题
- iOS10 优化APP首次安装网络权限提示方案
- Android studio更新提示网络问题
- 很好的正在加载提示的代码(源于网络)
- Picasso加载网络图片失败,提示decodestream时返回null
- Picasso加载网络图片失败,提示decodestream时返回null
- Picasso加载网络图片失败,提示decodestream时返回null
- Picasso加载网络图片失败,提示decodestream时返回null
- Picasso加载网络图片失败,提示decodestream时返回null
- Picasso加载网络图片失败,提示decodestream时返回null
- Picasso加载网络图片失败,提示decodestream时返回null
- 移动4G网络App页面加载时间过长
- Python中的函数(一)
- JavaWeb中的一些简单操作(四) 页面间的跳转的本质以及url乱码问题解决
- C++中四种类型转换方式
- junit4 注解讲解
- 与视频有关的问题
- app 网络加载提示问题
- 新网站应该如何做SEO优化
- 自定义简单的进度条
- 数据库索引
- c++学习笔记---测算程序运行时间
- 常见损失函数
- SAP 730模糊查询时不可以输入连续的汉字问题解决方案
- LVM基本介绍与常用命令
- rnn decoder