04 2008 档案

摘要:1. 水仙花数三位正整数、153=1~3 + 5~3+3~3For(int i=100; i<1000; i++){ Int bai = 0; Int shi = 0; Int ge = 0; Int baiYushu = 0; bai=i/100; baiYushu=i%100; shi = baiYushu /10; ge = baiYushu % 10; if(i== bai*bai*... 阅读全文
posted @ 2008-04-25 09:59 superstar 阅读(1852) 评论(1) 推荐(0)
摘要:js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent1、 传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。例如:<script language="javascript">document.wr... 阅读全文
posted @ 2008-04-07 10:51 superstar 阅读(3054) 评论(0) 推荐(1)