详细问题描述
https://ask.dcloud.net.cn/article/73
按照官方说明进行配置,无效且报错,鉴于文档太久,不知uniapp现在支持吗?
[内容]
重现步骤
[error.html]
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>错误页面</title>
</script>
</head>
<body>
<div id="app">404</div>
</body>
</html>
[结果]
09:38:03.660 Uncaught TypeError: Cannot read property 'screen' of undefined
09:38:03.680 error
09:38:03.700 error
09:38:03.721 Uncaught TypeError: Cannot read property 'screen' of undefined
09:38:03.741 Uncaught ReferenceError: plus is not defined (提示: 请在plus ready后再调用plus api)
[编译版本]
2.3.2
IDE运行环境说明
[HBuilder 或 HBuilderX]
HBuilderX
uni-app
[IDE版本号]
HBuilderX
2.3.2.20190921
App运行环境说明
[Android版本号]
8.1.0
[iOS版本号]
[手机型号]
OPPO PACM00
[模拟器型号]
胡萝卜猫 (作者)
后来解决了,官方文档问题。https://ask.dcloud.net.cn/question/80240
"url" : "hybrid/html/error.html" 地址要这样配置。
2020-05-06 13:50