You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standalone entity that is meaningful on its own. 拥有独立含义的实例
Example: header, container, menu, checkbox, input
Element
A part of a block that has no standalone meaning and is semantically tied to its block. 作为Block的一部分,并没有独立含义,但是有一定语义化
Example: menu item, list item, checkbox caption, header title
Modifier
A flag on a block or element. Use them to change appearance or behavior. 是Block或者Element的一个标记,用来标识状态或者行为
Example: disabled, highlighted, checked, fixed, size big, color yellow
styled-components is compatible with both React (for web) and ReactNative – meaning it's the perfect choice even for truly universal apps! See the documentation about ReactNative for more information.
可在js脚本中写css样式绑定到react的组件上,生成带样式的组件
It removes the mapping between components and styles. This means that when you're defining your styles, you're actually creating a normal React component, that has your styles attached to it.
// Create a Title component that'll render an <h1> tag with some stylesconstTitle=styled.h1` font-size: 1.5em; text-align: center; color: palevioletred;`;// Create a Wrapper component that'll render a <section> tag with some stylesconstWrapper=styled.section` padding: 4em; background: papayawhip;`;// Use Title and Wrapper like any other React component – except they're styled!render(<Wrapper><Title>
Hello World, this is my first styled component!
</Title></Wrapper>);
定义
跨平台桌面应用
可以用js html css写
http://electron.atom.io/
文本编辑器
http://codemirror.net/
WebP
一种新的图片压缩格式
https://developers.google.com/speed/webp/?hl=en
https://developers.google.com/speed/webp/docs/precompiled
macport: http://distfiles.macports.org/MacPorts/
tree-shaking
去掉软件集里没用的导出(exports default xxx)
http://www.2ality.com/2015/12/webpack-tree-shaking.html
https://www.zhihu.com/question/41922432/answer/93346223
chrome55 可以直接调试node.js了
https://blog.hospodarets.com/nodejs-debugging-in-chrome-devtools
google PWA
https://developers.google.com/web/progressive-web-apps/
esprima js语法解析器
在线演示地址:
http://esprima.org/demo/parse.html
css BEM标准 是啥
http://getbem.com/introduction/
Block
Element
Modifier
git hook 是啥
比较好用的工具husky
只需要在
package.json
里加配置就行:chrome 59 新特性
可查看js, css代码使用覆盖率
其他更新:
查看更多
The text was updated successfully, but these errors were encountered: