Docker运行图形界面应用

Docker因其轻量级,配制简单,与host完全隔离等特性,自诞生以来发展迅速,占领了大量原本使用虚拟机的生产,测试环境。但是,很多人不知道

网页宽高测试

源码如下 <!doctype html> p.innerHTML = o.toString ? o.toString() : o; el.appendChild(p); } function outputData() { var el = document.getElementById('log'); el.innerHTML = ''; log('screen.width: ' + screen.width); log('screen.height: ' + screen.height); log('window.outerWidth: ' + window.outerWidth); log('window.outerHeight: ' + window.outerHeight); log('window.innerWidth: ' + window.innerWidth); log('window.innerHeight: ' + window.innerHeight); log('document.documentElement.clientWidth: ' + document.documentElement.clientWidth); log('document.documentElement.clientHeight: ' + document.documentElement.clientHeight); var box = document.getElementById('box'); log('div#box width: ' + box.offsetWidth); log('window.devicePixelRatio: ' + window.devicePixelRatio);

蓝牙文件传输防止重入的方法

蓝牙opp文件传输底层其实是支持同时传输多个文件的,但考虑到蓝牙速度较慢,UI也不好展示,故在系统层屏蔽了重入,当有文件传输时,新的连接请求