2018-09-15 15:50:17 +08:00
|
|
|
|
@model ModelBase
|
2016-11-19 20:08:02 +08:00
|
|
|
|
@{
|
|
|
|
|
ViewBag.Title = "客户端测试";
|
|
|
|
|
}
|
2018-09-12 22:38:54 +08:00
|
|
|
|
@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));
|
2018-09-23 13:33:28 +08:00
|
|
|
|
|
2018-11-21 16:19:46 +08:00
|
|
|
|
$.footer();
|
2018-09-12 22:38:54 +08:00
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
}
|
2016-11-19 20:08:02 +08:00
|
|
|
|
@section css {
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
label {
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
2016-12-24 21:39:33 +08:00
|
|
|
|
|
|
|
|
|
.control-label {
|
|
|
|
|
width: 120px;
|
|
|
|
|
}
|
2016-11-19 20:08:02 +08:00
|
|
|
|
</style>
|
|
|
|
|
}
|
2018-09-12 22:38:54 +08:00
|
|
|
|
<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>
|