• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
曾不能
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2

2016年6月11日

函数f(n)=1/1!+1/2!+1/3!+...+1/n!的值
摘要: 1 piblic Double Solution(int n) 2 { 3 Dounle ret = 0; 4 for(int i = 1;i <= n;i++) 5 { 6 int dishu = 1; 7 for(int j = 1;j <= n;j++) 8 { 9 dishu... 阅读全文
posted @ 2016-06-11 14:12 曾不能 阅读(348) 评论(0) 推荐(0)
 
求菲波拉契数列第n项的值
摘要: public int Solution(int n) { if(n < 3) { return 1; }else { int[] arr = new int[n]; arr[0] = 1; arr[1] = 1; for(int i = 3;i <= n;i++) ... 阅读全文
posted @ 2016-06-11 14:06 曾不能 阅读(145) 评论(0) 推荐(0)
 
单例模式
摘要: 普通模式:判断是否为空,如果没有instance,就new 一个; 懒汉模式:直接在编译时new一个实例;也可以解决多线程的问题; 阅读全文
posted @ 2016-06-11 13:59 曾不能 阅读(112) 评论(0) 推荐(0)
 
 

2016年5月29日

js事件
摘要: 事件流:事件在DOM结构中传播的过程;事件冒泡:事件从最开始的具体元素到最外层的document出啊脉搏的过程;事件捕获:不太具体的节点应该最先接收到消息,一直传播到最里层的节点; 事件处理程序的方式:1.<input type="button" value="button1" id="button 阅读全文
posted @ 2016-05-29 22:44 曾不能 阅读(189) 评论(0) 推荐(0)
 
oracle_to_excel
摘要: 1.把excel文件读到DataTable ///<summary> ///根据excel路径和sheet名称,返回excel的DataTable ///</summary> public static DataTable GetExcelDataTable(string path, string 阅读全文
posted @ 2016-05-29 19:43 曾不能 阅读(304) 评论(0) 推荐(0)
 
jquery_2
摘要: 1.bind()bingding event handlerslike:$("div").bind("click",function(){alert("the div is clicked!");}); 2.unbind()unbinding the event handler;like:$("di 阅读全文
posted @ 2016-05-29 18:20 曾不能 阅读(132) 评论(0) 推荐(0)
 
jquery_1
摘要: jqury 1.alt VS titlewhen your img does not show up,then you will see the alt on the page;and when mouseover the img,what you see is title; 2.attr()get 阅读全文
posted @ 2016-05-29 16:59 曾不能 阅读(119) 评论(0) 推荐(0)
 
 
上一页 1 2

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3