会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
胡淼
博客园
首页
新随笔
联系
订阅
管理
2018年6月8日
数组元素任意排列算法
摘要: 假定一个数组,希望将该数组内任意元素相加,得出所有排列的结果 例子: 数组 [1,2,3] 期望得到: 1,2,3,1+2,1+3,2+3,1+2+3七种结果 1 function combinationArr(arr){ 2 var tempArr=[]; 3 if(arr.length>3){
阅读全文
posted @ 2018-06-08 10:31 胡淼
阅读(180)
评论(0)
推荐(0)
2014年9月8日
日期控件-V1
摘要: date html 日 一 二 三 ...
阅读全文
posted @ 2014-09-08 16:58 胡淼
阅读(133)
评论(0)
推荐(0)
2013年9月25日
粗糙的自用JS库(第一版)
摘要: 1 (function(){ 2 var batch = function(){}; 3 batch.prototype={ 4 ready : function(fn){ 5 var self=this; 6 self.bind(window,'load',fn); 7 }, 8 extend : function(target,source,o){ 9 var s = source || {},o = o || {}; 10 ...
阅读全文
posted @ 2013-09-25 21:56 胡淼
阅读(264)
评论(0)
推荐(0)
2012年11月11日
模拟日历记事本
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-
阅读全文
posted @ 2012-11-11 22:12 胡淼
阅读(265)
评论(0)
推荐(0)
2012年7月6日
借鉴鼠标滑轮BUG解决方案
摘要: 1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title> New Document </title> 5 <meta charset="utf-8"> 6 <style> 7 #wp {width: 300px; height: 20px; background: #ccc; margin: 50px auto; position: relative;} 8 #box {width: 20px; height: 20px; background: red;.
阅读全文
posted @ 2012-07-06 09:49 胡淼
阅读(189)
评论(0)
推荐(0)
2012年6月26日
三级导航(jq版)
摘要: 闲来无聊,有人要三级导航,就自己写了个简单的JQ版三级导航,JQ库自己下载,注意路径就行了 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="
阅读全文
posted @ 2012-06-26 11:09 胡淼
阅读(3098)
评论(0)
推荐(0)
2012年6月25日
缓冲下拉导航菜单
摘要: 闲来无聊,好久以前写的这个代码了,都忘了写法了,才找到,整理上来~~ 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Ty
阅读全文
posted @ 2012-06-25 16:50 胡淼
阅读(142)
评论(0)
推荐(0)
css_reset.css
摘要: body, div, dl, dt, dd, ul, ol, li,h1, h2, h3, h4, h5, h6, pre, code,form, fieldset, legend, input, button,textarea, p, blockquote, th, td { margin: 0; padding: 0;}fieldset, img { border: 0;}/* remember to define focus styles! */:focus { outline: 0;}address, caption, cite, code, dfn,em, s...
阅读全文
posted @ 2012-06-25 16:47 胡淼
阅读(98)
评论(0)
推荐(0)
完美拖拽(简洁版)
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; c
阅读全文
posted @ 2012-06-25 15:35 胡淼
阅读(1021)
评论(0)
推荐(0)
公告