搜尋

首頁  >  問答  >  主體

javascript - natjs 整合錯誤 ,運行時 提示undefined

natjs 整合錯誤 ,運行時 natjs時 if (typeof(__weex_define__) === 'function') 提示undefined

let Nat = {}
if (typeof(__weex_define__) === 'function') {
const camera = require('./camera')
const communication = require('./communication')
const geolocation = require('./geolocation')
const media = require('./media')
const modal = require('./modal')
const recorder = require('./recorder')
const network = require('./network')
const sensor = require('./sensor')
const device = require('./device')
const navigator = require('./navigator')
迷茫迷茫2701 天前974

全部回覆(1)我來回復

  • 滿天的星座

    滿天的星座2017-07-05 11:02:52

    __weex_define__

    回覆
    0
  • 取消回覆