当前位置:网站首页>Apiccloud cloud debugging solution

Apiccloud cloud debugging solution

2022-07-05 16:07:00 51CTO

APICloud How to implement cloud debugging ? because apploader For calling module development , Make sure that apploader There are corresponding module functions , For example, we need to use the cloud melting module , You must use a with cloud melting function apploader. Otherwise, you cannot debug , Will throw out init Method unavailable error . So I came up with a method ( Maybe you are all using ), It is convenient for debugging , And ensure that all functions are normal :

1、 To install a web service , such as Apache、nginx、IIS etc. , Make sure you are developing App Be able to access... Normally , And record the access address , Fill in the red part of the code in step 2 .

2、 Make an empty box APP, I use it by default HelloApp, Change the homepage to


<!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> Local learning test </title>

</head>

<body style="margin-top:100px;">

    <input type="text" value="<font color="Red"> What is being done app Access address of </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;"> Get into </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>

Submit SVN.

3、 Go to ​ ​apicloud​​ For the console , Create this empty box APP( perhaps HelloApp) Module page , Check the module you need .

4、 Package through cloud compilation , Then install it into your own testing machine , This is your own proprietary debugger .

5、 Adding new modules is also very simple , Just put the empty box APP Check the module of , Recompile cloud . Under development APP It can be used normally .

Above is  apicloud Cloud debugging ideas The whole content of .APICloud-​ ​APP Development ​​​、​ ​app customized ​​ Service provider , Provide one-stop mobile application solutions , Meet your various needs , Welcome to evaluate the demand and get the quotation for free .


原网站

版权声明
本文为[51CTO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051533328092.html