0基礎(chǔ)絕對(duì)聽(tīng)不懂,是將給已經(jīng)會(huì)JS的人聽(tīng)的,而且有的知識(shí)點(diǎn)還很含糊不清
2021-03-15
void main() {
int a = 10;
// int b = 5;
// b ??= 10;
// print(b);
String isBool = a > 5 ? "真" : "假";
print(isBool);
int c=1;
print(a ?? c);
}
??報(bào)錯(cuò) 。
main3.3.dart:11:9: Warning: Operand of null-aware operation '??' has type 'int' which excludes null.
print(a ?? c);
^
int a = 10;
// int b = 5;
// b ??= 10;
// print(b);
String isBool = a > 5 ? "真" : "假";
print(isBool);
int c=1;
print(a ?? c);
}
??報(bào)錯(cuò) 。
main3.3.dart:11:9: Warning: Operand of null-aware operation '??' has type 'int' which excludes null.
print(a ?? c);
^
2020-11-22
brew install dart --devel 出現(xiàn)以下錯(cuò)誤:
Error: No devel block is defined for dart-lang/dart/dart
Error: No devel block is defined for dart-lang/dart/dart
2020-08-17
谷歌這樣的大廠(chǎng)既然這樣設(shè)計(jì),肯定就是有它的道理的。建議老師去搞明白為什么這樣設(shè)計(jì),而不是一句“不建議大家這樣做,會(huì)把代碼搞復(fù)雜”就帶過(guò)了。
2020-06-18