zoukankan      html  css  js  c++  java
  • class不一致时候,解析规则

    l

    [<span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$hui-yi-zui-hou" href="/people/hui-yi-zui-hou" target="_blank">我是一只小萌刀</a></span>, <span class="author-link-line">
    <span class="name">知乎用户</span></span>, <span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$tut_mok" href="/people/tut_mok" target="_blank">莫毒枭</a></span>, <span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$su-fei-17" href="/people/su-fei-17" target="_blank">苏菲</a><span class="icon icon-badge-best_answerer icon-badge" data-tooltip="s$b$优秀回答者"></span></span>, <span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$xiao-zhu-12-40-56" href="/org/xiao-zhu-12-40-56" target="_blank">小猪</a><span class="OrgIcon sprite-global-icon-org-14" data-tooltip="s$b$已认证的官方帐号"></span></span>, <span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$shui-zhu-31" href="/people/shui-zhu-31" target="_blank">水烛</a></span>, <span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$chen-jia-xin-99-40-43" href="/people/chen-jia-xin-99-40-43" target="_blank">山河</a></span>, <span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$yuzheng-wang-78" href="/people/yuzheng-wang-78" target="_blank">Yuzheng Wang</a></span>, <span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$hsuvon" href="/people/hsuvon" target="_blank">南枫Von</a></span>, <span class="author-link-line">
    <a class="author-link" data-hovercard="p$t$zhong-nan-42-70-70" href="/people/zhong-nan-42-70-70" target="_blank">中南</a></span>]

    取出用户名

    author的class,有的是
    class="author-link"
    有的是
    class="name"
  • 相关阅读:
    url传参数出现乱码解决方法
    ASP.NET 当GridView中没有数据的时候,显示标题栏 并且给出一行数据提
    纯手工打造 IFAN (光盘回收及午餐筷子回收事业)
    javascript 收集
    Winform 中的控件透明设置要点
    对指定的网页进行截图 C#版
    生成短GUID的两个方法
    按键相关的 JS脚本代码
    ISCSI Enterprise Target 的其他资源和地址
    ORA01403:no data found 解决方法两则
  • 原文地址:https://www.cnblogs.com/wanglinjie/p/9249253.html
Copyright © 2011-2022 走看看