文章詳情頁
javascript - natjs 集成錯誤 ,運行時 提示undefined
瀏覽:78日期:2023-02-25 09:33:08
問題描述
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__?
標(biāo)簽:
JavaScript
排行榜

熱門標(biāo)簽