【发布时间】:2019-06-10 04:15:54
【问题描述】:
如果 google maps API 密钥无效,我会尝试捕获错误,但我不知道如何使用此功能。
function gm_authFailure() {alert('Error');}.
我尝试将它放在全局范围内,但它无法捕捉到错误。
<script>
gm_authFailure();
function gm_authFailure() {
alert('Error');
}
</script>
【问题讨论】:
标签: javascript php google-maps