-凌凌漆-:
你好,
[code=csharp]
MixCppDemo {
id: minxCppDemo
}
Component.onCompleted: {
var textString = ''
// 显示天气信息
var currentInfo = minxCppDemo.getInfo()
textString += '温度:' + currentInfo.tmp.toString() + '\n';
textString += '白天天气代码: ' + currentInfo.day_code.toString() + '\n'
textString += '白天天气情况: ' + currentInfo.day_text + '\n'
textString += '夜间天气代码: ' + currentInfo.night_code.toString() + '\n'
textString += '夜间天气情况: ' + currentInfo.night_text + '\n\n'
console.log(textString);
}
[/code]
这段代码中var currentInfo = minxCppDemo.getInfo()不需要传入参数吗?
[BMC]更好的我的世界 (Better MC) - MC百科
自杀方式