sanchiaki / note Goto Github PK
View Code? Open in Web Editor NEW一些笔记
一些笔记
组件分类
展示型组件:
展示型组件是最直接也是最常用的组件,就是用数据渲染视图,“数据进,DOM出”。
接入型组件:
接入型组件通常会跟接入数据的service
层打交道。包含一些和服务器或数据源打交道的逻辑,然后接入型组件会将数据往下传,传给比较简单的展示型组件。在React中这种类型的组件被称为“容器组件(container component
)”。
交互型组件
交互型组件典型的例子是对表单组件的封装和增强。大部分组件库,像ElementUI都是以交互型组件为主。这一类组件会有比较复杂的交互逻辑,但是它是一个非常通用的逻辑,所以它强调复用。
功能型组件
功能型组件是比较抽象的组件。用Vue举例,路由的<router-view>
和Vue自带的<transition>
都属于功能型组件。它本身不渲染任何内容,它是一个逻辑型的组件。它通常作为一个扩展或一种抽象机制存在。
闭合浮动
overflow:auto;
_height:1%;
重写函数
var _rwf = function (orig, before, after) {
return function () {
typeof before === 'function' && before();
var rv = orig.apply(this, arguments);
typeof after === 'function' && after();
return rv;
}
}
Fontmin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.