Ext.Ajax.request({url:'action路径'sync:true //false 表示异步/同步},function(response){alert(2)})当sync:true时,输出结果为2 1当sync:false时,输出结果为 1 2
分类:
其他好文 时间:
2014-06-28 10:36:25
阅读次数:
226
前端开发很重要,编写脚本也不容易。总结我以前的前端学习经历,基本是一团乱麻:css+javascript是在大三自学的,当时自己做课程设计,逼着自己在一个月之内,写了一个半成品的j2ee网站。当时,真有种:when you burn out, you would loose your enthusi...
分类:
编程语言 时间:
2014-06-25 20:47:45
阅读次数:
197
note:在html 标签类中的checkbox实现单选效果。在最近的开发项目中,客户要求使用小方格子实现“单选”功能,显然圆点的radio被out了,只能选择chckbox的方块样式,也在网上搜过,可能有点儿脑残,没有找到。废话不多说直接上代码: checkbox实现单选效...
分类:
Web程序 时间:
2014-06-25 19:14:51
阅读次数:
258
原型函数,功能很简单,找到时钟的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