为了账号安全,请及时绑定邮箱和手机立即绑定

weex playground一片空白

weex playground一片空白

鸿蒙传说 2018-10-10 08:20:09
weex-toolkit生成的代码中,weex playground还是能看到hello world的,加入接口后,没报错,页面也能展示列表内容,可是weex playground就一片空白,然后我把页面换到最原始的hello world竟然也一片空白,网上相关的资料太少了,说是本地服务器远程服务器什么什么的问题,有遇到类似问题的吗?需要什么相关内容我后续贴出。weex-devtool显示的报错信息[undefined:344:31] ReferenceError: Can't find variable: documentaddStyleaddStylesToDomexports__webpack_require____webpack_require____webpack_require____webpack_require__anonymousa@main.js:4:16690main.js:7:8740定位代码function addStyle (obj /* StyleObjectPart */) {      var update, remove      var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]')      if (styleElement) {        if (isProduction) {          return noop        } else {          styleElement.parentNode.removeChild(styleElement)        }      }
查看完整描述

2 回答

?
哔哔one

TA贡献1854条经验 获得超8个赞

在FQA的英文文档中,有给出如何处理playground的空白问题

查看完整回答
反对 回复 2018-10-21
?
桃花长相依

TA贡献1860条经验 获得超8个赞

weex 里没有 document。不要想着直接调用 html 标签

查看完整回答
反对 回复 2018-10-21
  • 2 回答
  • 0 关注
  • 1202 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信