Comments (4)
01 月 10 日
Vue
- 防止页面加载时出现 vuejs 的变量名(页面加载时,会闪现 vuejs 的变量名),可以使用
v-cloak
解决:
[v-cloak] {
display: none;
}
<ul v-cloak v-for="item in items">
<li>{{ item.name }}</li>
</ul>
Css3
- 发现金蝶社区的网站用 Canvas 做下雪的效果,然后发现 Canvas 是在最顶层的,但是却又不会影响到页面内的链接点击,后来才发现用了以下属性:
pointer-events:none;
from demo.
01 月 11 日
Eslint
- 安装:
$ npm install eslint --save-dev
- 运行:
$ ./node_modules/.bin/eslint xxx.js
Sass
- node-sass 安装慢解决方法:https://segmentfault.com/a/1190000005921721
from demo.
01 月 17 日
Sass
for
循环:
// 使用前
.feature-apiwg-1 {
@include spriteBgImg($spriteImgPath, "feature-apiwg-1");
}
.feature-apiwg-2 {
@include spriteBgImg($spriteImgPath, "feature-apiwg-2");
}
.feature-apiwg-3 {
@include spriteBgImg($spriteImgPath, "feature-apiwg-3");
}
.feature-apiwg-4 {
@include spriteBgImg($spriteImgPath, "feature-apiwg-4");
}
// 使用后
@for $i from 1 through 4 {
.feature-apiwg-#{$i} {
@include spriteBgImg($spriteImgPath, "feature-apiwg-#{$i}");
}
}
from demo.
01 月 19 日
ElementUI
- 今天给 el-input 绑定了
@keyup.enter="submit"
事件不起作用,后来去 github 源码 issue 搜索了发现是这样绑定@keyup.enter.native="submit"
。
from demo.
Related Issues (13)
- 2016 年 05 月,学习总结 HOT 14
- 2017 年 02 月,学习总结 HOT 3
- 2017 年 03 月,学习总结 HOT 3
- 2017 年 04 月,学习总结 HOT 3
- 2017 年 08 月,学习总结 HOT 3
- 2016 年 06 月,学习总结 HOT 21
- 2016 年 07 月,学习总结 HOT 4
- 2016 年 08 月,学习总结 HOT 2
- 2016 年 09 月,学习总结
- 2016 年 10 月,学习总结 HOT 3
- 2016 年 11 月,学习总结 HOT 9
- 2016 年 12 月,学习总结 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demo.