timer = setInterval(mar,30); //鼠标移上去清除时钟 box.onmouseover = function(event){ clearInterval(timer); event.stopPropagation(); //这里是阻止冒泡,不加要冒泡到body上面,鼠标在b ...
分类:
Web程序 时间:
2017-05-15 15:04:20
阅读次数:
298
using System; using System.Collections.Generic; using System.Linq; using System.ComponentModel.DataAnnotations; using System.IO; using System.Text; us... ...
分类:
Web程序 时间:
2017-05-15 14:15:21
阅读次数:
232
C:\Python27\Lib\ConfigParser.py: 会将配置文件中的选项名改为小写 为了保持配置项名称的大小写格式,重写: ...
分类:
编程语言 时间:
2017-05-15 13:11:44
阅读次数:
290
var obj = { valueOf: function() { return 3; }, toString: function() { return 2; }}; const sym = Symbol(obj);console.log(sym); // 'Symbol(2)' call toSt ...
分类:
其他好文 时间:
2017-05-15 13:08:26
阅读次数:
118
昨天晚上调试了一晚上,在LinearLayout上接收屏幕动作,可是出现了问题, 以下的代码是本人调的代码 </pre><pre name="code" class="java">private int pressedArrow; public class onSetterTouchListener ...
分类:
移动开发 时间:
2017-05-15 13:05:09
阅读次数:
254
Problem statement: Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touche ...
分类:
其他好文 时间:
2017-05-15 13:02:19
阅读次数:
225
common:中加 yii中自带的四张表: vendor/yiisoft/yii2/rbac/migrations/schma-mysql.sql 还加一个user表: Rbac控制器 model: Auth.php AuthItem.php Rbac.php: User.php: view:rba ...
分类:
其他好文 时间:
2017-05-15 13:00:56
阅读次数:
216
23种GOF设计模式一般分为三大类:创建型模式、结构型模式、行为模式。创建型模式抽象了实例化过程,它们帮助一个系统独立于怎样创建、组合和表示它的那些对象。一个类创建型模式使用继承改变被实例化的类,而一个对象创建型模式将实例化托付给还有一个对象。创建型模式有两个不断出现的主旋律。第一,它们都将关于该系 ...
分类:
其他好文 时间:
2017-05-15 11:14:41
阅读次数:
232
Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction ...
分类:
其他好文 时间:
2017-05-15 10:02:39
阅读次数:
169
之前学习DX和OpenGL时到是知道一点,但是没仔细研究过,只是跟着教程抄个公式就过了,看双API引擎时发现转换时是个问题,必须搞懂,gamedev上找了个解释,希望用得上。 https://www.gamedev.net/resources/_/technical/graphics-program ...
分类:
其他好文 时间:
2017-05-15 09:57:05
阅读次数:
149