Home  >  Q&A  >  body text

javascript - natjs integration error, prompt undefined at runtime

natjs integration error, when running natjs if (typeof(__weex_define__) === 'function') prompts 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')
迷茫迷茫2684 days ago953

reply all(1)I'll reply

  • 滿天的星座

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

    __weex_define__?

    reply
    0
  • Cancelreply