weex playground一片空白

weex-toolkit生成的代码中,weex playground还是能看到hello world的,加入接口后,没报错,页面也能展示列表内容,可是weex playground就一片空白,然后我把页面换到最原始的hello world竟然也一片空白,网上相关的资料太少了,说是本地服务器远程服务器什么什么的问题,有遇到类似问题的吗?需要什么相关内容我后续贴出。

weex-devtool显示的报错信息

[undefined:344:31] ReferenceError: Can't find variable: document

addStyle

addStylesToDom

exports

__webpack_require__

__webpack_require__

__webpack_require__

__webpack_require__

anonymous

a@main.js:4:16690

main.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)

        }

      }


鸿蒙传说
浏览 1209回答 2
2回答

哔哔one

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

桃花长相依

weex 里没有 document。不要想着直接调用 html 标签
打开App,查看更多内容
随时随地看视频慕课网APP