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)
        }
      }
阅读 4.7k
2 个回答

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进