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"