Dart: 解析html字符串

import 'package:http/http.dart' as http;
import 'package:html/parser.dart' show parse;
import 'package:html/dom.dart';

var response = await http.get('xxx.html');
Document document = parse(response.body);
// document.body.querySelector('.xxx')
posted @ 2019-05-24 01:17  Ajanuw  阅读(1459)  评论(0编辑  收藏  举报