上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: //从1970年开始的毫秒数然后截取10位变成 从1970年开始的秒数 function timest() { var tmp = Date.parse( new Date() ).toString(); tmp = tmp.substr(0,10); return tmp; } js 时间戳 var ts = Date.parse(new Date()); // ts 得... 阅读全文
posted @ 2016-06-14 17:35 wifix 阅读(50759) 评论(0) 推荐(1) 编辑
摘要: jade语法: #{xxx} //嵌入数据 p= xxx //嵌入数据 p #{xx} //嵌入数据 标签 html // 翻译为 div#test // div.bb-dd // div#bb.aa.cc //也可以的,类似emmet的语法 #content .item // p 啊噢! // 啊噢! p | foo bar baz ... 阅读全文
posted @ 2016-05-24 16:08 wifix 阅读(981) 评论(0) 推荐(0) 编辑
摘要: js 设置url参数 js 移除url参数 阅读全文
posted @ 2016-05-23 16:06 wifix 阅读(459) 评论(0) 推荐(0) 编辑
摘要: function addLoadEvent(func) { var old_onload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else{ old_onload(); func(); ... 阅读全文
posted @ 2016-04-25 18:21 wifix 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 解决jquery与zepto等其它库冲突兼容的问题;(function ($) { }) (jQuery);;(function ($) { }) (Zepto); 在Bootstrap源码(具体请看《Bootstrap源码解析》)和其他jQuery插件经常看到如下的写法: +function ($ 阅读全文
posted @ 2016-04-25 09:47 wifix 阅读(775) 评论(0) 推荐(0) 编辑
摘要: centos 查询是否安装apacherpm -qa httpd yum -y install httpd // 安装apache yum -y install php // 安装php php 5.3.3-46 yum -y install mysql // mysql (5.1.73) yum 阅读全文
posted @ 2016-04-13 14:22 wifix 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: npm install -g http-server 以后可以在任何一个文件夹启动静态文件的访问通过http-server -a localhost -p 8000ctrl + c结束 http-server -h npm 仓库地址: https://www.npmjs.com/package/ht 阅读全文
posted @ 2016-04-10 22:08 wifix 阅读(1834) 评论(0) 推荐(0) 编辑
摘要: 可以的:test(); // 直接function 方式声明的函数可以直接调用,后声明function test(){}aa(); //error var 方式声明的函数需先声明后调用var aa = function(){} 参考: 因为闭包! 所以也可以这样做 JavaScript doesn' 阅读全文
posted @ 2016-04-07 14:39 wifix 阅读(452) 评论(0) 推荐(0) 编辑
摘要: js 执行时间function use_time(func) { var start = new Date().getTime(); console.log(start); func(); var end = new Date().getTime(); console.log(end); conso 阅读全文
posted @ 2016-04-06 22:49 wifix 阅读(1595) 评论(0) 推荐(0) 编辑
摘要: vi 命令: 参考: http://www.eepw.com.cn/article/48018.htm按 i 进入insert(插入模式)按 esc进入command(命令模式)在命令模式下按 : 进入lastLine(底行模式): w filename (输入 「w filename」将文章以指定 阅读全文
posted @ 2016-04-04 21:09 wifix 阅读(186) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页