摘要:
异常处理 throw bool flag = false; if (flag == false) { throw ('this is a wrong tips'); } /* Unhandled exception: this is a wrong tips #0 main (file:///d:/ 阅读全文
摘要:
控制流程语句 if-else语句 //标准语句 bool isWrong = true; bool isTesting = false; if (isWrong) { print('错误提示'); } else if (isTesting) { print('正在测试'); } else { pri 阅读全文