显示设备信息

 

该功能的部分源代码如下:

<div align="center">
    <div id="outDiv"></div>
    <input type="button" value="显示设备信息" onclick="document.getElementById('outDiv').innerHTML=navigator.userAgent">
</div>

原文地址:https://www.cnblogs.com/leisureeen/p/13523933.html