前端开发很重要,编写脚本也不容易。总结我以前的前端学习经历,基本是一团乱麻:css+javascript是在大三自学的,当时自己做课程设计,逼着自己在一个月之内,写了一个半成品的j2ee网站。当时,真有种:when you burn out, you would loose your enthusi...
分类:
编程语言 时间:
2014-06-25 20:47:45
阅读次数:
197
Peterson's algorithm (AKA Peterson's solution) is a concurrent
programming algorithm for mutual
exclusion that allows two processes to share a single-use resource without conflict, using only shar...
分类:
编程语言 时间:
2014-06-25 19:38:19
阅读次数:
748
POST和GET是Web编程中的两个术语,他们是通过URI访问resource的两种方式。简单的说,GET 是把要访问的资源嵌入在URI中。假设你在一个页面 http://www.myphone.org/ 这个页面有是一个手机品牌的主页,这里有一个搜索框,你输入你的手机型号就可以搜到相关的信息。如果...
分类:
其他好文 时间:
2014-06-24 19:11:13
阅读次数:
148
原型函数,功能很简单,找到时钟的id,计算数值,到达抢购时间时执行任务。
function nwt() {var str=$('#deal_expiry_timer_e3cdcd2a').text(); var out=str.match(/\d+/g);console.log(out);var h=parseInt(out[0]),m=parseInt(out[1]),s=parseInt(o...
分类:
Web程序 时间:
2014-06-24 17:56:43
阅读次数:
229
(1) 两者都是按地址传递的,使用后都将改变原来的数值
(2) ref传进去的参数必须在调用前初始化,out不必
(3) ref传进去的参数在函数内部可以直接使用,而out不可
(4) ref传进去的参数在函数内部可以不被修改,但out必须在离开函数体前进行赋值
(5) ref是有进有出,out是只出不进
string outString = "This is t...
分类:
其他好文 时间:
2014-06-24 17:39:19
阅读次数:
211
If you feel like crying you shouldn’t hold back your tears. You should let it all out while you still can, because when you get bigger sometimes you ....
分类:
其他好文 时间:
2014-06-24 14:53:38
阅读次数:
255
有时希望把刚捕获的异常重新抛出,尤其是在使用Exception捕获的异常的时候。既然已经得到了对当前异常对象的引用,可以直接把它重新抛出:catch(Exception e){ Systyem.out.println(“An exception was thrown”); throw e;}重...
分类:
编程语言 时间:
2014-06-24 13:54:48
阅读次数:
275
原文:.net中用Action等委托向外传递参数 一般我们可以使用ref,out达到向外传递参数目的。 Action是一个特殊的委托,除了常规应用。我们还可以用它来实现简单地向外传递参数。直接看下面的UnitTest代码: 1: [TestMethod] 2: public void PassOut...
分类:
Web程序 时间:
2014-06-24 11:51:50
阅读次数:
330
生产者#include#include#includeusing namespace std; int main(void) { ofstream out; const char ch = '*'; long long k = 0; DWORD64 time = GetTickCount64(); ...
分类:
其他好文 时间:
2014-06-24 11:29:19
阅读次数:
354
Inflate() method can find out a layout defined by xml,as like the findViewById() method,but there have some different between them.
The different are:
If your Activity used other layout,such as...
分类:
移动开发 时间:
2014-06-22 06:41:43
阅读次数:
362