当前位置:网站首页>APICloud云调试解决方案
APICloud云调试解决方案
2022-07-05 15:35:00 【51CTO】
APICloud云调试如何实现?由于apploader对于调用模块开发,得保证apploader有对应的模块功能,比如要用融云模块,必须用带有融云功能的apploader。否则就不能调试,会抛出init方法不可用的错误。于是乎我就想到了一个方法(可能你们都在用),既能方便调试,又保证所有功能正常:
1、安装一个web服务,比如Apache、nginx、IIS等,保证自己正在开发的App能够正常的访问,并记录下来访问地址,填入第二步代码红色部分。
2、做一个空盒的APP,我使用就是默认的HelloApp,首页改成
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<title>本地学习测试</title>
</head>
<body style="margin-top:100px;">
<input type="text" value="<font color="Red">正在做的app的访问地址</font>" id="url" style="width:100%;height:50px;line-height:50px;font-size:24px;">
<button id="into" style="width:100%;height:50px;line-height:50px;font-size:24px;margin-top:20px;">进入</button>
</body>
<script type="text/javascript">
apiready = function() {
api.clearCache();
};
document.getElementById("into").onclick = function(event) {
api.openWin({
name: 'cjn',
url: 'http://'+document.getElementById("url").value+'/'
});
}
</script>
</html>
提交SVN。
3、去 apicloud对于控制台,把创建这个空盒APP(或者HelloApp)的模块页面,勾选出自己需要的模块。
4、通过云编译打包好,然后安装到自己的测试机,这样就是自己专有的一个调试器。
5、新增模块也很简单,只需把空盒APP的模块勾选,重新云编译。正在开发的APP就可以正常使用了。
以上是 apicloud云调试思路的全部内容。APICloud- APP开发、 app定制服务商,提供一站式移动应用解决方案,满足您的各类需求,欢迎免费评估需求和获取报价。
边栏推荐
- Appium automation test foundation - appium basic operation API (I)
- Example project: simple hexapod Walker
- [Netease Yunxin] research and practice of super-resolution technology in the field of real-time audio and video
- 异常com.alibaba.fastjson.JSONException: not match : - =
- Use of set tag in SQL
- 17.[STM32]仅用三根线带你驱动LCD1602液晶
- 效果编辑器新版上线!3D渲染、加标注、设置动画,这次一个编辑器就够了
- Noi / 1.4 07: collect bottle caps to win awards
- Summary of the third class
- 18.[stm32] read the ROM of DS18B20 temperature sensor and realize multi-point temperature measurement
猜你喜欢

Information collection of penetration test

五种常见的咨询公司谈判策略以及如何维护自己的利益

【简记】解决IDE golang 代码飘红报错
![18.[STM32]读取DS18B20温度传感器的ROM并实现多点测量温度](/img/e7/4f682814ae899917c8ee981c05edb8.jpg)
18.[STM32]读取DS18B20温度传感器的ROM并实现多点测量温度

Appium automation test foundation - appium basic operation API (I)

后台系统发送验证码功能

视觉体验全面升级,豪威集团与英特尔Evo 3.0共同加速PC产业变革

Nine hours, nine people, nine doors problem solving Report

The visual experience has been comprehensively upgraded, and Howell group and Intel Evo 3.0 have jointly accelerated the reform of the PC industry

CISP-PTE之SQL注入(二次注入的应用)
随机推荐
F. Min cost string problem solving Report
Explanation report of the explosion
Relationship between objects and classes
Batch update in the project
CISP-PTE之SQL注入(二次注入的应用)
Value series solution report
OceanBase社区版之OBD方式部署方式本地安装
Record the pits encountered in the raspberry pie construction environment...
五种常见的咨询公司谈判策略以及如何维护自己的利益
Data communication foundation smart_ Link_&_ Monitor_ Link
Five common negotiation strategies of consulting companies and how to safeguard their own interests
vant popup+其他组件的组合使用,及避坑指南
Information collection of penetration test
Intelligent metal detector based on openharmony
项目中批量update
D-snow halo solution
obj解析为集合
MySQL overview
Six common transaction solutions, you sing, I come on stage (no best, only better)
Modify PyUnit_ Time makes it support the time text of 'xx~xx months'