Cordova的跨域请求处理其实很简单,只需在对应平台的Config.xml文件中,将
platforms\平台名\res\xml\config.xml
<access origin="*"/> 改为 <access origin="http://ip*"/>
Cordova的跨域请求处理其实很简单,只需在对应平台的Config.xml文件中,将
platforms\平台名\res\xml\config.xml
<access origin="*"/> 改为 <access origin="http://ip*"/>
1.在某個.vue裏面添加下面代碼 <template> <div id="app"> <p>測試掃一掃</p> <!-- 掃一掃按鈕 --> <button @click="handleClick"