开发asp.net mvc程序,多少是离不开jQuery客户程序。今天Insus.NET学习jQuery的一个on事件驱动。先在网页视图放一个图片铵钮,用户可以使用mouse对这图片时行over,out或是click,根据不同的事件来更变图片src。控制器中创建一个Action:创建视图:建好视图之...
分类:
Web程序 时间:
2015-03-03 16:25:43
阅读次数:
155
服务器使用事务日志来持久化事务。在接受一个提案之前,服务器(Follower和Leader)需要将提案中的事务持久化到事务日志中。事务日志是服务器本地磁盘的一个文件。事务按顺序附加到这个文件。服务器时不时的会关闭当前文件,创建一个新文件来滚动(Roll Over)日志。...
分类:
其他好文 时间:
2015-03-03 09:58:59
阅读次数:
171
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next()...
分类:
其他好文 时间:
2015-03-03 01:12:50
阅读次数:
227
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou...
分类:
其他好文 时间:
2015-03-02 20:40:28
阅读次数:
178
在Knockout中直接使用函数传递参数是不行的,会导致函数在初始化时就被调用,例如:
将导致函数在初始化时,点击事件changeEditor()函数就被调用,显然,违背初衷。
要实现参数的传递,有2种方法:
1、方法一:使用函数包裹
Mouse over me
点击事件响应函数又套了一层,调用chageEditor函数,在原changeEdi...
分类:
其他好文 时间:
2015-03-02 19:08:49
阅读次数:
879
其实说到这里,有的同学可能比较迷惑,OverScroller和Scroller有什么区别呢?事实上,这两个类都属于Scrollers,Scroller出现的比较早,在API1就有了,OverScroller是在API9才添加上的,出现的比较晚,所以功能比较完善,Over的意思就是超出,即OverScroller提供了对超出滑动边界的情况的处理,这两个类80%的API是一致的,OverScroller比Scroller添加了一下几个方法
? isOverScrolled()
? springB...
分类:
其他好文 时间:
2015-03-01 18:31:03
阅读次数:
165
DECLARE @Names TABLE ( name VARCHAR(20));INSERT INTO @Names VALUES ('DeSzmetch'),('DESZMETCH'),('DESZMETCK'),('DesZmetch'),('deszmetch');SELECT nam...
分类:
其他好文 时间:
2015-03-01 17:03:57
阅读次数:
200
时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIt is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 ...
分类:
其他好文 时间:
2015-03-01 16:53:19
阅读次数:
176
With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Si...
分类:
其他好文 时间:
2015-02-28 16:31:22
阅读次数:
169
with a as (select numb,name,row_number() over( partition by numb order by name desc) rowid from fenzu)select max(case when rowid=2 then name end) nam....
分类:
数据库 时间:
2015-02-28 16:08:04
阅读次数:
156