百度:Tangram
基本上就是个百度版jQuery,2.0版本使用链式API,更像了。
配套的还有UI库Magic和模版引擎BaiduTemplate(和ejs很像)
腾讯:JX
理念在介绍里面写的很详细,代码清晰,注释丰富,可读性很好,但只有文档没有实例。
比较传统的大块头框架,本质上来说还是一堆工具方法和对象的堆积,提供了很基本的模块化的开发方式,但没有模块间的依赖关系支持。
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>mse-bufferStream.html</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| </head> |
| function test(){ | |
| console.log('test') | |
| } |
| /* thumb截中间区域 */ | |
| body { | |
| text-align: center; | |
| } | |
| .thumb { | |
| position: relative; | |
| width: 20em; | |
| margin:2em auto; |
| [ | |
| { | |
| name:"HTML5", | |
| uri:"http://www.w3.org/TR/html5/single-page.html", | |
| category:"markup" | |
| }, | |
| { | |
| name:"HTML 5.1", | |
| uri:"http://www.w3.org/TR/html51/single-page.html", | |
| category:"markup" |
| body { | |
| width: 600px; | |
| font:normal 14px/1.62 arial, sans-serif; | |
| } | |
| .mod { | |
| margin-bottom:100px; | |
| background-color:#efc; | |
| } | |
| .pic { | |
| margin-right: 20px; |
| body { | |
| width: 600px; | |
| font:normal 14px/1.62 arial, sans-serif; | |
| } | |
| .mod { | |
| margin-bottom:100px; | |
| background-color:#efc; | |
| } | |
| .pic { | |
| margin-right: 20px; |
| /* | |
| 12306 Auto Login => A javascript snippet to help you auto login 12306.com. | |
| Copyright (C) 2011 Kevintop | |
| Includes jQuery | |
| Copyright 2011, John Resig | |
| Dual licensed under the MIT or GPL Version 2 licenses. | |
| http://jquery.org/license | |
| Includes 12306.user.js |
| /* | |
| 12306 Auto Login => A javascript snippet to help you auto login 12306.com. | |
| Copyright (C) 2011 Kevintop | |
| Includes jQuery | |
| Copyright 2011, John Resig | |
| Dual licensed under the MIT or GPL Version 2 licenses. | |
| http://jquery.org/license | |
| Includes 12306.user.js |