feat:add network plugin to iOS

This commit is contained in:
pengfei.zhou
2019-11-21 20:16:48 +08:00
parent 632e4b98b9
commit 74e5421282
5 changed files with 87 additions and 6 deletions

View File

@@ -14,9 +14,9 @@ class NetworkDemo extends Panel {
textColor: Color.WHITE,
layoutConfig: layoutConfig().exactly(),
onClick: () => {
network(context).get('https://doric.pub').then(
network(context).get('https://m.baidu.com').then(
e => {
modal(context).toast(JSON.stringify(e))
modal(context).alert(JSON.stringify(e))
}
).catch(e => {
modal(context).toast('Catched:' + JSON.stringify(e))