|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
时间:2006-11-30
搜索一下,没有找到。对那些ajax库也不熟悉,不知道哪里找。
只好把java下常用的一个简单的模型搬了过来。 从java转型过来,对js最大的感受就是:不能按照习惯来确定你写的东西是什么意思,颇让人忐忑不安。 补充:指点。已经改好。 js 代码
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
|
时间:2006-11-30
能详细一点介绍吗?来点截图看看效果?
|
|
| 返回顶楼 | |
|
时间:2006-11-30
发现不能在ie下运行,不知道什么问题。。。。大侠指点一下
|
|
| 返回顶楼 | |
|
时间:2006-11-30
楼主,网页上有错误!
|
|
| 返回顶楼 | |
|
时间:2006-11-30
写法都很普通啊,在ff下没有问题,但是ie下有错误。。。郁闷中
很简单的东东,才几行代码,有一个测试页面。没有必要截图吧。 |
|
| 返回顶楼 | |
|
时间:2006-11-30
zhangqidi 写道: 写法都很普通啊,在ff下没有问题,但是ie下有错误。。。郁闷中
很简单的东东,才几行代码,有一个测试页面。没有必要截图吧。 faint!在flock上也不行啊! |
|
| 返回顶楼 | |
|
时间:2006-11-30
麻烦大侠给看看哈,不知道什么地方有问题。我这儿firefox运行是正常的。
js 代码
|
|
| 返回顶楼 | |
|
时间:2006-11-30
Scheduler.prototype.schedule = function(task,iterator){
nextInterval = iterator.nextInterval.call(iterator);
if ( nextInterval <= 0 ){
// stop run. do nothing.
} else {
//这句为啥这么写?
window.setTimeout(Scheduler.run,nextInterval,task,iterator);
}
}
|
|
| 返回顶楼 | |
|
时间:2006-11-30
unifly 写道 Scheduler.prototype.schedule = function(task,iterator){
nextInterval = iterator.nextInterval.call(iterator);
if ( nextInterval <= 0 ){
// stop run. do nothing.
} else {
//这句为啥这么写?
window.setTimeout(Scheduler.run,nextInterval,task,iterator);
}
}
MSDN上说明: window.setTimeout(vCode, iMilliSeconds [, sLanguage]) 本来的确最后一个参数是传给前面的函数当参数的,但是邪恶的IE没有实现,FF等实现了。 所以要重载window.setTimeout()来兼容。 |
|
| 返回顶楼 | |
|
时间:2006-11-30
谢谢
|
|
| 返回顶楼 | |










