List data = [1, 2, 3]; data.forEach((value) { if (value == 2) { // how to stop? } print(value); }); 我試過return false;它在jQuery中工作,但它不適用於Dart。
確定! 回上一頁