随笔分类 -  web前端

摘要:function selectFrom( lowerValue, upperValue ){ var choices = upperValue - lowerValue + 1; return Math.floor( Math.random() * choices + lowerValue );}var num = selectFrom( 2,10 );alert( num ); 阅读全文
posted @ 2014-01-20 16:59 sunsweet 阅读(417) 评论(0) 推荐(0)
摘要:很久没记笔记了,最近搞起web开发了 新增项目 加载中...以上代码根据滚动条位置触发一个insertcode(),函数,这个函数可以用ajax,获取服务器接口数据,然后重绘dom 阅读全文
posted @ 2014-01-17 14:32 sunsweet 阅读(2247) 评论(0) 推荐(0)