LinMeng LinMeng
4年前
input 获取焦点,键盘遮挡页面
移动端开发中常遇到的就是键盘遮挡问题,下面提供项目中的写法:window.addEventListener('resize',(){constactiveElementdocument.activeElement;if(activeElement.tagName'INPUT'||activeElement.t
Stella981 Stella981
3年前
Android 和风天气SDK获取天气
在编写app的时候遇到了记录天气的情况,所以将使用和风天气的过程记录下来。一、导入和风天气的jar包以及依赖jar包的下载链接https://dev.heweather.com/docs/sdk/android(https://www.oschina.net/action/GoToLink?urlhttps%
Stella981 Stella981
3年前
Echarts异步获取数据,刷新实例
functionorgEcharts(){varechartsData"年份","新训","复训";vardomdocument.getElementById("container");varmyChartecharts.init(dom);varapp
Wesley13 Wesley13
3年前
PHP获取API接口XML数据
<?phpheader('ContentType:text/html;charsetutf8');//1.获取xml数据$xmldatafile_get_contents("http://api网址");//2.把xml转换为simplexml对象//$xmlstringsimplexm
Stella981 Stella981
3年前
JS 获取json key和value
varjson{"Type":"Coding","Height":100};for(varkeyinjson){alert(key); //Type,Heightalert(jsonkey);//Coding,100
Stella981 Stella981
3年前
I9300 Root权限获取
软件下载地址:http://115.com/file/dp3p7ekwI9300ROOT.rar(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2F115.com%2Ffile%2Fdp3p7ekw%23I9300ROOT.rar)步骤见机锋上文章:http://bbs.gfa
Stella981 Stella981
3年前
C# 获取当前屏幕DPI
原文:C获取当前屏幕DPI(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fkybs0%2Fp%2F7429282.html)1.通过Graphics类获取GraphicscurrentGraphicsGraphics.F
Stella981 Stella981
3年前
DHCP自动获取ip地址实验
一:实验环境1.1:华为ensp软件1.2:PC机和路由器及交换机初始化状态的PC机和初始化状态的路由器,交换机二:实验过程2.1:配置设备在ensp中,将PC机和路由器及交换机按图示做成拓扑图。!DHCP自动获取ip地址实验(https://s4.51cto.com/images/blog/202005/2
Wesley13 Wesley13
3年前
unity 获取本机的IP地址
粘贴直接就能用privatestringGetIP(){NetworkInterfaceadaptersNetworkInterface.GetAllNetworkInterfaces();foreach(NetworkInterfaceadaterin
Stella981 Stella981
3年前
Opencv读取并获取视频属性
opencv中通过VideoCaptrue类对视频进行读取操作以及调用摄像头.常用的操作如下:1、常用构造函数1.VideoCapture类的构造函数:C:VideoCapture::VideoCapture()C:VideoCapture::VideoCapture(conststring&filename)C