use the string replace's method the resolve the int and double problem.

replace the generate code's num to int.
This commit is contained in:
cjl_macbook
2018-08-11 17:30:00 +08:00
parent 65cc06fe99
commit 6f007e8157
3 changed files with 40 additions and 7 deletions

View File

@@ -50,8 +50,9 @@ void main() async {
ButtonElement formatButton = querySelector("#format");
formatButton.onClick.listen((click) {
String pretty;
pretty = convertJsonString(jsonInput.value);
try {
pretty = formatJson(jsonInput.value);
pretty = formatJson(pretty);
} on Exception {
return;
}