zhaolei
2020-11-20 921de2254ff5712a44ed8575ee8efe34252f6603
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
@model ModelBase
@{
    ViewBag.Title = "客户端测试";
}
@section javascript {
    <script>
        window.onload = function () {
            var browser = $.browser;
            $('#language').text(browser.language);
            $('#mobile').text(browser.versions.mobile);
            $('#webapp').text(browser.versions.webApp);
            $('#webkit').text(browser.versions.webKit);
            $('#ios').text(browser.versions.ios);
            $('#android').text(browser.versions.android);
            $('#iphone').text(browser.versions.iPhone);
            $('#ipad').text(browser.versions.iPad);
            $('#useragent').text(navigator.userAgent);
            $('#versions').text(JSON.stringify(browser.versions));
 
            $.footer();
        };
    </script>
}
@section css {
    <style type="text/css">
        label {
            word-break: break-all;
        }
 
        .control-label {
            width: 120px;
        }
    </style>
}
<div class="form-group">
    <label class="control-label">语言版本:</label>
    <label id="language" class="form-control-static"></label>
</div>
<div class="form-group">
    <label class="control-label">是否为移动终端:</label>
    <label id="mobile" class="form-control-static"></label>
</div>
<div class="form-group">
    <label class="control-label">webApp:</label>
    <label id="webapp" class="form-control-static"></label>
</div>
<div class="form-group">
    <label class="control-label">webKit:</label>
    <label id="webkit" class="form-control-static"></label>
</div>
<div class="form-group">
    <label class="control-label">ios终端:</label>
    <label id="ios" class="form-control-static"></label>
</div>
<div class="form-group">
    <label class="control-label">android终端:</label>
    <label id="android" class="form-control-static"></label>
</div>
<div class="form-group">
    <label class="control-label">是否为iPhone:</label>
    <label id="iphone" class="form-control-static"></label>
</div>
<div class="form-group">
    <label class="control-label">是否iPad:</label>
    <label id="ipad" class="form-control-static"></label>
</div><div class="form-group">
    <label class="control-label">userAgent:</label>
    <label id="useragent" class="form-control-static"></label>
</div>
<div class="form-group">
    <label class="control-label">versions:</label>
    <label id="versions" class="form-control-static"></label>
</div>