小编Dmi*_*hov的帖子

如何在 React Native 中解析 HTML 文件?

如何从文件系统获取 HTML 文件并从中解析特定元素。

例如,给定下面的 html 片段,我如何提取表格内容并呈现它?

<html>
<div>
  <h1>header</h1>
  <table id="a" border="1">
    <th>Number</th>
    <th>content A</th>
    <th>contetn A</th>
    <th>content A</th>
    <tr>
      <td>1</td>
      <td>a</td>
      <td>a</td>
      <td>a</td>
    </tr>
    <th>Number</th>
    <th>content B</th>
    <th>content B</th>
    <th>content B</th>

    <tr>
      <td>1</td>
      <td>b</td>
      <td>b</td>
      <td>b</td>
    </tr>
  </table>
</div>
<br>
<footer>footer</footer>

</html>
Run Code Online (Sandbox Code Playgroud)

html javascript html-parsing react-native

8
推荐指数
3
解决办法
2万
查看次数

OS X 10.11.6 El Capitan SSLRead()返回错误-9841

在终端到https网站的curl请求后我有这个错误

curl: (56) SSLRead() return error -9841
Run Code Online (Sandbox Code Playgroud)

卷曲 - 翻译

curl 7.43.0 (x86_64-apple-darwin15.0) libcurl/7.43.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets
Run Code Online (Sandbox Code Playgroud)

如何使卷曲工作?

PS我通过这个命令重新安装了curl brew install --with-openssl curl

macos terminal ssl https curl

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

curl ×1

html ×1

html-parsing ×1

https ×1

javascript ×1

macos ×1

react-native ×1

ssl ×1

terminal ×1