第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

MVC里的分部視圖的div如何顯示和隱藏

MVC里的分部視圖的div如何顯示和隱藏

HUWWW 2019-03-02 07:03:34
MVC里的分部視圖的div如何顯示和隱藏
查看完整描述

2 回答

?
楊__羊羊

TA貢獻(xiàn)1943條經(jīng)驗(yàn) 獲得超7個(gè)贊


1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

    <div id="a ">

        <table border="1px" bordercolor="#696969" cellspacing="0px" style="width:auto">

            <tr>

                <td align="center" valign="top" colspan="6">

                    <p>

                        @*<span style="font-size: 10px; font-weight: bold">@Model.DisTypeId</span>*@

                        <span style="font-size: 10px; font-weight: bold">充值 信息</span>

                    </p>

                </td>

            </tr>

            <tr>

                <td align="center" valign="top" width="150px">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">充值金額</span>

                        </strong>

                    </p>

                </td>

                <td align="center" valign="top" width="150px">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">充值積分</span>

                        </strong>

                    </p>

                </td>

            </tr>

            <tr>

                <td align="center" valign="top" colspan="1">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">@Model.LoseMoney</span>

                        </strong>

                    </p>

                </td>

                <td align="center" valign="top" colspan="1">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">@Model.LosePoints</span>

                        </strong>

                    </p>

                </td>

            </tr>

        </table>

    </div>

 

    <div id="b " >

        <table border="1px" bordercolor="#696969" cellspacing="0px" style="width:auto">

            <tr>

                <td align="center" valign="top" colspan="6">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">消費(fèi) 信息</span>

                        </strong>

                    </p>

                </td>

            </tr>

            <tr>

                <td align="center" valign="top" colspan="2">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">產(chǎn)品名稱(chēng)</span>

                        </strong>

                    </p>

                </td>

                <td align="center" valign="top" colspan="2">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">產(chǎn)品數(shù)量</span>

                        </strong>

                    </p>

                </td>

            </tr>

            <tr>

                <td align="center" valign="top" colspan="2">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">@Model.ProductName</span>

                        </strong>

                    </p>

                </td>

                <td align="center" valign="top" colspan="2">

                    <p>

                        <strong>

                            <span style="font-size: 6px; font-weight: bold; ">@Model.Amount</span>

                        </strong>

                    </p>

                </td>

            </tr>

        </table>

    </div>

現(xiàn)在有兩個(gè)層里各有一個(gè)table怎樣根據(jù)model.TypeId 的值顯示和隱藏 層model.typeid  是0   顯示  amodel.typeid  是1   顯示  b

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

<script type="text/javascript" src="jquery.js"></script>

    <script type="text/javascript">

      var model_typeid=0;

      window.onload=function()

      {

          model_typeid=@model.typeid;

          $(document).ready(

              function(){

                switch(model_typeid)

                {

                    case 0:

                      $('#a').css('display','inline');

                      $('#b').css('display','none');

                      break;

                    case 1:

                      $('#a').css('display','none');

                      $('#b').css('display','inline');

                      break;

                } 

              }

           

          );

      }

    </script>


 


查看完整回答
反對(duì) 回復(fù) 2019-03-09
  • 2 回答
  • 0 關(guān)注
  • 1170 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)