鍍金池/ 問(wèn)答/HTML/ 只有var picker = weex.requireModule('picke

只有var picker = weex.requireModule('picker'),picker為undefined

weex.requireModule('XXXX'),引用內(nèi)建模塊,只有在使用picker時(shí),picker為undefined。這是為什么?

回答
編輯回答
赱丅呿

clipboard.png

2018年3月8日 00:12
編輯回答
憶當(dāng)年

為什么我的還是undefined啊

2018年7月17日 07:35
編輯回答
熟稔

如果需要在web頁(yè)面中使用picker,請(qǐng)先按照以下步驟:
1、npm install @weex-project/weex-picker --save-dev
2、在html中加入<script src="../../../node_modules/@weex-project/weex-picker/js/build/index.js"></script>

2017年5月10日 18:04