摘要: 下要载nodjs https://nodejs.org/en/文件路径package.json{ "name": "template", "version": "1.0.0", "dependencies": { "tmodjs": "1.0.3" }, ... 阅读全文
posted @ 2016-01-16 16:09 Mi文 阅读(420) 评论(0) 推荐(0) 编辑
摘要: function oDate(currentdata,idex,ihref){ var stringTime = currentdata; var timestamp2 = Date.parse(new Date(stringTime)); ... 阅读全文
posted @ 2015-12-09 11:28 Mi文 阅读(147) 评论(0) 推荐(0) 编辑
摘要: .container { background-color: #eee; height: 200px;}.img { display: inline-block; width: 64px; height: 64px; background-color: g... 阅读全文
posted @ 2015-12-02 17:17 Mi文 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-02 17:05 Mi文 阅读(466) 评论(0) 推荐(0) 编辑
摘要: /***设置遮罩层***/.dv{position: fixed;top: 0;left:0;right: 0;bottom: 0;} 阅读全文
posted @ 2015-11-28 17:04 Mi文 阅读(225) 评论(0) 推荐(0) 编辑
摘要: background: url(../images/sd.png);background-position: left;//图片偏移量,向左偏移,可以有两个值(数字或left,top,right,bottom)background-size: cover;//设置图片大小, http://www.... 阅读全文
posted @ 2015-11-28 09:23 Mi文 阅读(126) 评论(0) 推荐(0) 编辑
摘要: /***正则的两种写法**/ var re=//; var re=new RegExp(); /***正则方法test 正则去匹配字符串,匹配成功true,不成功false**/ var ... 阅读全文
posted @ 2015-11-18 21:02 Mi文 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1 /******jquery $.grep****/ 2 var arr=[1,2,3]; 3 $.grep(arr,function(n,i){//过滤返回一个新数组 4 return n... 阅读全文
posted @ 2015-11-15 20:01 Mi文 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 窗口间的通信A页面无标题文档 B页面无标题文档 这是b.com的postMessage.html页面上面是父级操作子级,下面是子级操作父级无标题文档 这里是a.com下的2.iframe.html页面 ajax跨域请求ie下无标题文档 ajax无刷新上传无标题文... 阅读全文
posted @ 2015-11-08 16:16 Mi文 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 初始canvas 不支持canvas浏览器window.onload = function(){ var oC = document.getElementById('c1'); var oGC = oC.getContext('2d'); //webgl : 3D绘图};绘制实心和空心... 阅读全文
posted @ 2015-11-08 15:58 Mi文 阅读(143) 评论(0) 推荐(0) 编辑