zoukankan      html  css  js  c++  java
  • jquery html标签的链式语法

    <div id="ProductNet">
    <table border='0' cellspacing='2' cellpadding='0' style='text-align: center; 674px;'>
    <tr>
    <td class='PNetTD'>
    日期类型
    </td>
    <td class='PNetTD'>
    更新日期
    </td>
    <td class='PNetTD'>
    信托单位净值(元)
    </td>
    <td class='PNetTD'>
    当期净值增长率
    </td>
    <td class='PNetTD'>
    累计净值增长率
    </td>
    </tr>
    </table>
    <table border='0' cellspacing='2' cellpadding='0' style='text-align: center; 674px; display:none;'>
    <tr>
    <td class='PNetTD' style="16%;">
    日期类型
    </td>
    <td class='PNetTD' style="16%;">
    更新日期
    </td>
    <td class='PNetTD' style="20%;">
    信托单位净值(元)
    </td>
    <td class='PNetTD' style="16%;">
    当期净值增长率
    </td>
    <td class='PNetTD' style="16%;">
    累计净值增长率
    </td>
    <td class='PNetTD' style="16%;">
    累计净值
    </td>
    </tr>
    </table>
    <table border='0' cellspacing='2' cellpadding='0' style='text-align: center; 674px;display:none;'>
    <tr>
    <td class='PNetTD'>
    日期类型
    </td>
    <td class='PNetTD'>
    更新日期
    </td>
    <td class='PNetTD'>
    信托单位净值(元)
    </td>
    <td class='PNetTD'>
    单位累计净值
    </td>
    <td class='PNetTD'>
    累计净值增长率
    </td>
    </tr>
    </table>
    </div>

    //jquery 链式语法糖

    if (a == 36){
    $('#ProductNet table').hide().eq(1).show();
    }
    else if(a == 35){
    $('#ProductNet table').hide().eq(2).show();
    }
    else {
    $('#ProductNet table').hide().eq(0).show();
    }

  • 相关阅读:
    Spark概述及集群部署
    Scala编程实战
    Scala的高级特性
    Scala基础
    MapReduce优化参数
    HDFS安全模式
    HDFS元数据管理机制
    Hadoop Federation联邦
    Hadoop HA集群的搭建
    Hadoop High Availability高可用
  • 原文地址:https://www.cnblogs.com/fx2008/p/4154885.html
Copyright © 2011-2022 走看看