今天是 7/16/2017
Ionic 3 的程式愈寫愈多,愈來愈複雜。
本來為了加快程式的載入速度,所以所有 Page 很早就全用 Lazy Load ,直至愈後面,Page 愈寫愈深,因此造成了一些問題要用很怪的手段解決,使用 Ionic 3.5.3 依舊一樣。
本來官方app-script 預設 generate page 是 Lazy Module,現在看到官方 app-script 改成預設為一般 Page, 故勸各位 Ionicer 還是依照官方的方式,用一般 Page。 待官方 ionic g page XXXPage 改為有 XXX.module.ts 的時候再用 Lazy Load Page
目前我發現的問題有:
2017-07-16
2015-12-03
Ionic 在 android 手機無法 $http post 網址的解決方案
| Android 在 4.0.0 後有新增安全性,防止 app 存取外部開發者沒有允許的網址 故若你的 app 需要連外部網址,則需要將這些網址列入白名單 white-list (Cordova Whitelist) 在 Ionic 裡作法如下 1. 先在 shell 裡安裝 plugin $ ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git 2. 在你的 Ionic 專案的 config.xml 裡加上 <allow-navigation href="*" /> "*" 代表所有網址都允許例如: <platform name="android"> ..... ..... <allow-navigation href="*" /> </platform> whitelist 設定的詳情請看 https://github.com/apache/cordova-plugin-whitelist#content-security-policy |
訂閱:
文章 (Atom)