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')


杨魅力
浏览 701回答 1
1回答

慕容森

更新natjs到最新版本(>=0.0.8)修复对.vue支持
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript