Я застрял в этой проблеме в течение нескольких дней. Я добавил плагин консоли в проект, но при запуске приложения на консоли нет O/P.Кордонский консольный плагин не работает
Кордова Список плагинов:
Код (index.html):
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body onload="testConsole()">
<div class="app">
<h1>Apache Cordova</h1>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script>
function testConsole(){
console.log("console.log works well");
alert("Console: Alert");
}
</script>
</body>
Я добавил предупреждение, чтобы узнать, работает ли функция –