Tip : uni.showLoading is not a function at view.umd.min.js:1
koua
- 发布:2020-08-17 09:28
- 更新:2020-08-19 18:18
- 阅读:1609
renderjs 下使用 uni.showLoading
分类:uni-app
2 个回复
koua (作者)
<template>
<view>
测试跳转
</view>
</template>
<script>
export default {
data() {
return {
</script>
<script module="esrimap1" lang="renderjs">
export default {
mounted: function() {
this.arcgisInit("viewDiv");
},
methods: {
arcgisInit(div) {
uni.showLoading({
title: '加载中...'
});
setTimeout(function() {
uni.hideLoading();
}, 3000);
}
}
}
</script>
TypeError: uni.showLoading is not a function at view.umd.min.js:1
DCloud_UNI_GSQ
renderjs 运行在 view 层不支持直接调用 uni 相关 API(可以通过和逻辑层通迅实现)