1

运行以下代码时

let convertApi = ConvertApi.auth({secret: '<YOUR_SECRET>'})
let elResult = document.getElementById('result')
let elResultLink = document.getElementById('resultLink')
elResult.style.display = 'none'

在 index.js 中显示错误,因为未定义 ConvertApi.auth。如何解决这个问题?

错误代码是:

let convertApi = ConvertApi.auth({secret: 'secret key'})
                 ^

ReferenceError: ConvertApi is not defined
4

0 回答 0