我在qmomentics ide的控制檯上打印消息。如何使用console.log在控制檯上打印消息
console.log("Simple string message");
然後,此消息顯示在設備日誌控制檯上。
現在我試圖將其他數據類型連接到消息並在設備控制檯上打印這些消息。然後該消息不顯示在控制檯上。
property bool finished: false
console.log("String message concatenated with bool value" +finished);
請告訴我如何打印與其他數據類型連接的消息。
嗨,我已經給下面的功能。然後不顯示消息。 onOpened:{console.log(「完成」+完成); if(finished){ sheetAssplashPage.close(); } } – user2636874
我已經試過了,它適用於我。檢查您的所有名稱是否正確,以及您在控制檯中遇到的任何可能的錯誤。 –