不同的页面但是js用的都一样,A页面可以正常打印,B页面却不能打印也无法显示怎么解决?

小程序 文章 2022-04-11 15:20 375 0 全屏看文

AI助手支持GPT4.0

不同的页面但是js用的都一样,A页面可以正常打印,B页面却不能打印也无法显示怎么解决?Different pages but the same js is used. Page A can be printed normally, but page B cannot be printed or displayed. How to solve it?

不同的页面但是js用的都一样,A页面可以正常打印,B页面却不能打印也无法显示怎么解决?

两个页面用的都是相同的获取位置的函数,A页面可以显示也可以打印。

正常应该如此显示

但是B页面不可以打印,连打印失败也不可以。

A页面 中无法显示定位,从今天刚出现这种问题,之前从来没有

Both pages use the same function to obtain the location. Page a can be displayed or printed. Normally, it should be displayed like this, but page B cannot be printed, even if printing fails. The location cannot be displayed on page A. this problem has just appeared today and has never happened before

回答:

社区技术运营专员-Jahozheng:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

空空:

体验版getloation是有限制的 30秒内只触发一次

https://developers.weixin.qq.com/community/develop/doc/000aee91a98d206bc6dbe722b51801

武曲心:

我认为你的这两个页面虽用相同逻辑,但是业务走向两页面应该是不一样的,自己从头开始仔细检查一下

微喵网络:

报错是什么?

解冬雪:没有保存 调试器只显示如图那些
解冬雪:没有报错

-EOF-

AI助手支持GPT4.0