dartstatic String mapToQuery (Map data){ String query = ""; if (data != null) { int index = 0; for (dynamic key in data.keys) { dynamic value = Uri.encodeComponent(data[key]+""); if (index == 0) { query = "?"; } else { query = query + "\&"; } query += "$key=$value"; index++; } } return query; }
本文作者:还是夸张一点
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!