javascript - natjs 整合錯誤 ,運行時 提示undefined
迷茫
迷茫 2017-07-05 11:00:52
0
1
982

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

业精于勤,荒于嬉;行成于思,毁于随。

全部回覆(1)
滿天的星座

__weex_define__

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板