添加 range
This commit is contained in:
parent
e8d5dfd1c1
commit
b9d2d1f014
125
dart-js/out.js
125
dart-js/out.js
File diff suppressed because one or more lines are too long
@ -120,7 +120,15 @@ void main() {
|
|||||||
// Find all elements by tag (<div>).
|
// Find all elements by tag (<div>).
|
||||||
List<Element> divElements = querySelectorAll('div');
|
List<Element> divElements = querySelectorAll('div');
|
||||||
|
|
||||||
List<double> double_list = [1.0, 2.0, 3.0];
|
List<double> double_list = [1.0, 2.0, 3.0, 5.0, 5.002];
|
||||||
|
|
||||||
|
// range in list
|
||||||
|
print(double_list.getRange(0, 2).toList());
|
||||||
|
|
||||||
|
// range
|
||||||
|
var range = List.generate(5, (index) => index);
|
||||||
|
print(range);
|
||||||
|
print(double_list.getRange(Range.END_TO_START, Range.START_TO_END).toList());
|
||||||
|
|
||||||
// 增删改查
|
// 增删改查
|
||||||
double_list.add(4.0);
|
double_list.add(4.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user