This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "id": "d240e1be-38aa-4356-88b8-d1febb48d95e", | |
| "name": "色色资源站", | |
| "uri": "https://www.emiao026.com", | |
| "httpApi": "http://sscj8.com/inc/api.php", | |
| "httpsApi": "http://sscj8.com/inc/sapi.php", | |
| "type": "综合性资源" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [1]. 安卓滑动关闭窗口 //既可写在win页面,也可以写在frame页面;写在frame页面时,相对应的win页面打开frame的方法处将页面弹动bounce改为false. | |
| 在 IOS 设备上可以通过滑动来关闭 win,在安卓默认是不可以。细看下文档其实也很的简单,监听事件里面的 swiperight: | |
| 如果一个窗口是先打开 win 再嵌套 frame 的打开的方法如下 | |
| apiready = function(){ | |
| api.addEventListener({ | |
| name:'swiperight' //分别有 swipeup,swiperight,swipedown,swipeleft | |
| },function(ret,err){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 添加模块 UIPullRefreshFlash | |
| 1、config.xml | |
| <preference name="customRefreshHeader" value="UIPullRefreshFlash"/> | |
| // 下拉刷新 | |
| api.setCustomRefreshHeaderInfo({ | |
| bgColor: '#ffffff', | |
| isScale: false, | |
| loadAnimInterval:200, | |
| image: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config.xml 配置 app key | |
| var ajpush = api.require('ajpush'); | |
| // 非 ios 下初始化 | |
| if(api.systemType != 'ios'){ | |
| ajpush.init(function(ret) {}); | |
| } | |
| // 用户登录成功后获取 reg id | |
| ajpush.getRegistrationId(function(ret) { | |
| if(ret){ |