blob: 0cc4f9fecd85f3bf468633bc9498d3977b0b4168 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import QtQml 2.0
QtObject {
Component.onCompleted: {
var list = [[1, 2], [3, 4], [5, 6]];
for (const [x, y] of list)
console.log("X: " + x + "; Y: " + y);
for (let [x, y] of list)
console.log("X: " + x + "; Y: " + y);
}
}
|