摘要: in.js 阅读全文
posted @ 2013-01-21 17:32 zhuzefu 阅读(231) 评论(0) 推荐(0) 编辑
摘要: ControlJS 阅读全文
posted @ 2013-01-21 17:09 zhuzefu 阅读(302) 评论(0) 推荐(0) 编辑
摘要: <!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-15 15:22 zhuzefu 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1.安装nodejshttp://nodejs.org/2.安装各自的node packagejs我用的是UglifyJS github地址:https://github.com/mishoo/UglifyJScss我用的是clean-cssgithub地址:https://github.com/GoalSmashers/clean-css图片用的是node-smushit github地址:https://github.com/colorhook/node-smushit3.编写代码//jsvar fs = require('fs');var jsp = require(&q 阅读全文
posted @ 2012-09-28 16:00 zhuzefu 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html><head><meta charset="gb2312" /><title></title><meta name="description" content=" "><meta name="keywords" content=" "></head><body><!--header--><style>.line{h 阅读全文
posted @ 2012-06-19 13:07 zhuzefu 阅读(277) 评论(0) 推荐(0) 编辑
摘要: <!doctype html > <html > <head > <meta charset="gb2312" / > <title > </title > <meta name="description" content=" " > <meta name="keywords" content=" " > </head > <body > <style>*{padd 阅读全文
posted @ 2012-06-15 09:43 zhuzefu 阅读(423) 评论(0) 推荐(1) 编辑
摘要: <!doctype html> <head> <meta http-equiv="content-type" content="text/html; charset=GBK"> <title> </title> </head> <body> <style>#CountdowTest01,#CountdowTest02{display:block;width:400px;}.countdown-over{color:red}.countdown-d,.count 阅读全文
posted @ 2012-05-14 23:52 zhuzefu 阅读(325) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><head><meta http-equiv="content-type" content="text/html; charset=GBK"><title> </title></head><body><style >*{padding:0;margin:0;border:none;}ul,li{list-style-type:none;}.searchwrap{margin:20px auto;height:25px;width: 阅读全文
posted @ 2012-05-11 10:59 zhuzefu 阅读(788) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><head><meta http-equiv="content-type" content="text/html; charset=GBK"><title> </title></head><body><style>*{padding:0;margin:0;border:none;}ul,li{list-style-type:none;}.aside{font-size:12px;width:228px;margin:20px;po 阅读全文
posted @ 2012-05-11 10:55 zhuzefu 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 群里有个人问这么判断一个对象是Element?我查了下//underscore.js的实现 _.isElement = function(obj) { return !!(obj && obj.nodeType == 1); };//valentine.js的实现 , ele: function (el) { return !!(el && el.nodeType && el.nodeType == 1) }//prototype.js的实现isElement: function(object) { return object && 阅读全文
posted @ 2012-04-26 18:17 zhuzefu 阅读(858) 评论(0) 推荐(0) 编辑