Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this -- You don't know JavaScript -- by 晓芸 #2

Open
zxy7107 opened this issue Nov 21, 2018 · 3 comments
Open

this -- You don't know JavaScript -- by 晓芸 #2

zxy7107 opened this issue Nov 21, 2018 · 3 comments

Comments

@zxy7107
Copy link

zxy7107 commented Nov 21, 2018

youdontknowjs-this.pptx

晓芸

var obj1 = {
a: 2,
obj2: obj2
};
var obj2 = Object.create({a: 12});
obj2.foo = foo;

// a: 42,
// foo: foo
//};

obj1.obj2.foo(); // 42

wechatimg786

@yaofly2012
Copy link
Owner

赵洋洋

a == 1 && a == 2 && a == 3

a === 1 && a === 2 && a === 3

image

@yaofly2012
Copy link
Owner

嘉晟

BEM

https://zhuanlan.zhihu.com/p/26407119

@yaofly2012
Copy link
Owner

yaofly2012 commented Nov 23, 2018

翠华

Emmet插件

基本上,大多数的文本编辑器都会允许你存储和重用一些代码块,我们称之为“片段”。虽然片段能很好地推动你得生产力,但大多数的实现都有这样一个缺点:你必须先定义你得代码片段,并且不能再运行时进行拓展。

Emmet把片段这个概念提高到了一个新的层次:你可以设置CSS形式的能够动态被解析的表达式,然后根据你所输入的缩写来得到相应的内容。Emmet是很成熟的并且非常适用于编写HTML/XML 和 CSS 代码的前端开发人员,但也可以用于编程语言。

html:5
ul>li$*3
div>img^ul>li

详细参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants