点击查看效果
过滤空格
var i = 0;
document.onmousedown=function(event){
if(i==1){
window.open('http://www.njxblog.com');
}
//setTimeout(function (){window.open('http://www.njxblog.com')},2000);
i...
分类:
Web程序 时间:
2014-10-10 14:58:54
阅读次数:
130
document.onkeydown = function () {if (window.event && window.event.keyCode == 13) {window.event.returnValue = false;}}
分类:
Web程序 时间:
2014-10-10 14:25:24
阅读次数:
136
双向绑定是angularjs亮点之一,在前面的《angularjs培训之helloworld》篇中大概介绍了下双向绑定,现在我们“旧事重提”,先看下下面的代码片段:view中:<inputtype=‘button‘ng-click="set()"value="setValue">
<inputtype="text"ng-model=‘userName2‘>controller..
分类:
Web程序 时间:
2014-10-09 19:19:58
阅读次数:
320
evbuffer_new?.was not declared in this scope错误处理办法首先突然出现了这个错误,首先查看/usr/include/event.h文件,里面是有这个函数的可是为什么显式这个错误呢估计是还有别的地方也有event.h文件里面没有这个函数名,但是被include...
分类:
其他好文 时间:
2014-10-09 18:21:07
阅读次数:
129
epoll - I/O event notification facility在linux的网络编程中,非常长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。相比于select,epoll最大的优点在于它不会随着监听fd数目的增长而减少效率。由于...
分类:
其他好文 时间:
2014-10-09 17:38:07
阅读次数:
226
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import java.util.*;
import java.text.SimpleDateFormat;
/**
* Title: ComboBox下拉域演示
* Description: 通过选择或这...
分类:
编程语言 时间:
2014-10-09 15:44:18
阅读次数:
176
-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.mysqldump -uroot -pxxxxx --all-databases > all.sqlmysql用mys...
分类:
数据库 时间:
2014-10-09 14:33:03
阅读次数:
298
当用户触摸屏幕的时候,会产生许多手势,例如down,up,scroll,filing等等。 一般情况下,我们知道View类有个View.OnTouchListener内部接口,通过重写他的onTouch(View?v,?MotionEvent?event)方法,我们可以处...
分类:
其他好文 时间:
2014-10-09 13:46:19
阅读次数:
193
event event(事件流)是 window对象的一个属性 在JS中事件有2种类型 一种是冒泡类型 一种是捕获类型 冒泡类型最先是在IE中出现,而捕获类型最先在标准的DOM中出现,不过最终IE得胜 从而在标准的DOM中有捕获和冒泡两种 冒泡的顺序是从下到上p>div>body>documen.....
分类:
其他好文 时间:
2014-10-09 12:38:53
阅读次数:
183
首先删除当前的MainCamera并保存当前的scene
选择菜单NGUI->Create->2D UI
添加后显示
Directional light是过后添加的直射光线
在Hierarchy窗口选择Camera,在Inspector窗口中,UICamera的Event Type选择2D UI。
然后在Build Settings...切换Android平台,下一步很重...
分类:
其他好文 时间:
2014-10-09 02:34:07
阅读次数:
244