Imagine you have a special keyboard with the following keys: Key 1: (A): Print one 'A' on screen. Key 2: (Ctrl-A): Select the whole screen. Key 3: (Ct ...
分类:
其他好文 时间:
2017-08-29 15:31:53
阅读次数:
196
BOM Screen对象 console.log(window.width);//屏幕宽度 console.log(window.height);//屏幕高度 console.log(window.availWidth);//屏幕可用宽度 console.log(window.availHeight ...
分类:
Web程序 时间:
2017-08-28 00:47:01
阅读次数:
225
Unity Stats 面板介绍 原创 2016年06月12日 10:06:12 1544 0 3 原创 2016年06月12日 10:06:12 1544 0 3 Time per frame and FPS (每帧的时间和FPS):处理和渲染一个游戏框架(以及由此产生的FPS)的需要多少时间。请 ...
分类:
编程语言 时间:
2017-08-27 15:24:34
阅读次数:
189
#_*_coding:utf-8_*_ import pygame from pygame.locals import * from sys import exit from random import * from math import pi pygame.init() screen=pygam ...
分类:
其他好文 时间:
2017-08-27 11:12:29
阅读次数:
194
使用对象的步骤: 1.创建对象; 类名 对象名=new 类名();//将一个类实例化,得到对象 Telphone phone=new Telphone(); 2.使用对象; 引用对象的属性:对象名.属性; phone.screen=5; 引用对象的方法:对象名.方法名() phone.sendMes ...
分类:
其他好文 时间:
2017-08-27 00:12:36
阅读次数:
120
【React设置宽度的坑】 我们知道通过ref可以获取DOM元素,通过style属性可以给此DOM元素添加样式。 但下面两行的赋值是无效的: 因为style中的width、height是有单位的,必须加上px才是有效的赋值。所以要改成下面这样 ...
分类:
其他好文 时间:
2017-08-26 04:53:18
阅读次数:
399
#实现百度搜索功能 # coding:utf-8 from selenium import webdriver driver = webdriver.Firefox() # 截图功能 def get_screen(): '''截图''' import time nowTime = time.strf... ...
分类:
编程语言 时间:
2017-08-25 17:42:10
阅读次数:
535
<!DOCTYPE html> <html><head><meta charset="UTF-8"><title>capture screen</title></head><body><video id="video" controls="controls"><source src="img/tes ...
分类:
Web程序 时间:
2017-08-25 13:48:04
阅读次数:
641
为了吸纳用户、提高网站的用户体验性,现在很多网站都采取第三方登陆,比较常用的就是微信、QQ、微博了,接下来我来分享一下微博登陆接入的过程: 开发文档:http://open.weibo.com/wiki/%E6%8E%88%E6%9D%83%E6%9C%BA%E5%88%B6 开发步骤: 1、通过新 ...
分类:
其他好文 时间:
2017-08-24 16:42:44
阅读次数:
295
CSS根据屏幕分辨率宽度自动适应的办法 第一种办法是js选择CSS CSS根据屏幕分辨率宽度自动适应的办法 第一种办法是js选择CSS CSS根据屏幕分辨率宽度自动适应的办法 第一种办法是js选择CSS <SCRIPT language=JavaScript><!-- Beginif (screen ...
分类:
Web程序 时间:
2017-08-24 15:00:55
阅读次数:
378