搜索

首页  >  问答  >  正文

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')
迷茫迷茫2697 天前967

全部回复(1)我来回复

  • 滿天的星座

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

    __weex_define__

    回复
    0
  • 取消回复