司徒正美

Results 147 issues of 司徒正美

https://github.com/AlloyTeam/Mars/tree/master/issues

http://www.tuicool.com/articles/6Vvqmu

```javascript function avalon() { } //单例HTML标签,多例自定义标签 var aslice = Array.prototype.slice avalon.createElement = function (type, props, children) { var obj = { type: type, props: props, children: aslice.call(arguments, 2) } if...

![qq20140326152604](https://f.cloud.github.com/assets/190846/2522052/eb28a388-b4b7-11e3-8536-3920de5388c1.jpg) 如图

现在所有模块都将匿名化,同步化。新版的加载器相同说是相当于原生require的加强版,同时require多个模块时,返回一个数组。 var array = require(["./aaa","./bbb","./ccc"]) //相当于 var array = []; array[array.length] = require("./aaa") array[array.length] = require("./bbb") array[array.length] = require("./ccc") 亦可以在后面加函数 var array = require(["./aaa","./bbb","./ccc"],function(a, b, c){ //....................... }) 模块允许多种定义法 //纯node.js方法...

# github-FE-project github上值得关注的前端项目 ## 综合/资源 - [frontend-dev-bookmarks](https://github.com/dypsilon/frontend-dev-bookmarks) 一个巨大的前端开发资源清单。`star:15000` - [front-end-collect](https://github.com/foru17/front-end-collect) 分享自己长期关注的前端开发相关的优秀网站、博客、以及活跃开发者。`star:860` - [Front-end-Interview-questions](https://github.com/hawx1993/Front-end-Interview-questions) 史上最全前端开发面试问题及答案 - [f2e-hub](https://github.com/lvwzhen/f2e-hub) 包含`Animation,UI,dialog,Carousels,color,image,workflow`等。`star:100` - [awesome-javascript](https://github.com/sorrycc/awesome-javascript) 一系列很棒的`javascript` 库,资源。`star:3100` - [fks](https://github.com/JacksonTian/fks) 前端技能汇总,包含前端知识架构,后端知识,`linux`,书籍推荐等。`star:4000` - [node123](https://github.com/youyudehexie/node123) `node.js`中文资料导航。`star:1200` - [mobile-web-favorites](https://github.com/hoosin/mobile-web-favorites) 移动端web开发收藏夹。`star:200`...

我已经完成newland.js的内存session与cookie session了 cookie session就直接利用它的maxAge来清除 内存session利用setInterval定期检测mtime属性,发现mtime少于当前时间,清掉它

没有使用经典的createWriteStream方法,我把要打印的日志push进一个数组,然后hfs.writeFile用递归输出。如果有什么好的实现请告诉我 logger.js

flash是基于session的消息传送机制,我们可以把消息放到flash中并在下一个action访问到它们。 用法 flow.flash('info', 'email sent'); flow.flash('error', 'email delivery failed'); flow.flash('info', 'email re-sent'); // => 2 flow.flash('info'); // => ['email sent', 'email re-sent'] flow.flash('info'); // => [] flow.flash(); // => {...

网易移动前端已经实践近4年的移动端适配各种屏幕无痛工具脚本,设计给你的稿子是什么就怎么切,无需特殊处理,页面viewport设置成设计给的宽度,调用fixViewportWidth()即可。 O网页链接 原理请查看 O网页链接 另外PPK去年的书也有详细分析。 ``` javascript define(function(require, exports, module) { var ua = navigator.userAgent, android = ua.match(/(Android);?[\s\/]+([\d.]+)?/), ipad = ua.match(/(iPad).*OS\s([\d_]+)/), ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/), iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/), os...