问一下这个是啥问题啊。。。好奇怪
MiniProgramError
TypeError: U.createEvent is not a function
at Q (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:30186)
at eval (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:30484)
at e.exports (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:35646)
at eval (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:30435)
at y.<computed> (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:33712)
at O (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:33441)
at Function.eval (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:33479)
at <setTimeout callback function>
at eval (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:109783)
at eval (eval at n.call.document (http://127.0.0.1:32636/remote-debug/runtime.js?devtools_ignore=true:1:12942), <anonymous>:2:100928)
https://developers.weixin.qq.com/community/develop/doc/0000ac4f490d200087fb9a8c154400
可以看看这里面的回答,类似的问题