摘要:
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>滚动切换</title> 5 <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> 6 <style type="text/css"> 7 body, h1, h2, h3, h4, h5, h6, blockquote, p, 阅读全文
posted @ 2012-06-12 01:20
前端咖
阅读(249)
评论(0)
推荐(0)
摘要:
【程序8】题目:求s=a+aa+aaa+aaaa+aa...a的值,其中a是一个数字。1 function sumNum(num, count) {2 var tmp = 0;3 for (var i = count; i > 0; i--) {4 tmp += num * Math.pow(10, Math.abs(i - count)) * i;5 }6 return tmp;7 } 阅读全文
posted @ 2012-06-12 00:27
前端咖
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号