Page({
onLoad() {
let fd = new FormData()
},
})
ReferenceError: FormData is not defined
at _i.onLoad (index.js:3)
at _i.<anonymous> (WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1)
at _i.c.__callPageLifeTime__ (WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1)
at WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1
at WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1
at WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1
at WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1
at WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1
at WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1
at Function.or (WASubContext.js?t=wechat&s=1685724083105&v=2.32.1:1)(env: macOS,mp,1.06.2303220; lib: 2.32.1)
有没有哪位大神讲一下怎么优雅解决,我这边是uni-app同时开发h5和微信小程序
报错很明显,FromData 方法未定义。