百度:Tangram
基本上就是个百度版jQuery,2.0版本使用链式API,更像了。
配套的还有UI库Magic和模版引擎BaiduTemplate(和ejs很像)
腾讯:JX
理念在介绍里面写的很详细,代码清晰,注释丰富,可读性很好,但只有文档没有实例。
比较传统的大块头框架,本质上来说还是一堆工具方法和对象的堆积,提供了很基本的模块化的开发方式,但没有模块间的依赖关系支持。
require(["compose"], function(c) { | |
var b = c(function() { | |
}, {toString: function() { | |
return this.name | |
}}); | |
var a = c.create(b) | |
a.name = 'a'; | |
console.log(a.toString()) | |
}) |
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" /> |
#!/bin/bash | |
function actual_path() { | |
if [ [ -z "$1" ] -a [ -d $1 ] ]; then | |
echo $(cd $1 && test `pwd` = `pwd -P`) | |
return 0 | |
else | |
return 1 | |
fi | |
} |
var BaseObject = { | |
create: function create() { | |
var instance = Object.create(this); | |
instance._construct.apply(instance, arguments); | |
return instance; | |
}, | |
extend: function extend(properties, propertyDescriptors) { | |
propertyDescriptors = propertyDescriptors || {}; |
#!/bin/bash | |
# Issue arbitary git command for each of the sub modules. | |
# E.g. git-bundle checkout feature/docs | |
# Check out the feature/docs branch for each of the sub module. | |
function print_header | |
{ | |
printf '%.0s-' {1..30} && echo | |
echo $1 | |
printf '%.0s-' {1..30} && echo |
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
foo
k$
^[a-f]4$
(...).*\1
^(?!.*(.)(.)\2\1)
^(.)[^p].*\1$
^(?!(..+)\1+$)
(.)(.\1){3}
^[^o]?.{5}$
(00[039]|12|015|50)$|1..?4|4.2|1.7|6.0|006