Code Monkey home page Code Monkey logo

Comments (4)

cobish avatar cobish commented on September 12, 2024

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.

cobish avatar cobish commented on September 12, 2024

01 月 11 日

Eslint

  • 安装:
$ npm install eslint --save-dev
  • 运行:
$ ./node_modules/.bin/eslint xxx.js

Sass

from demo.

cobish avatar cobish commented on September 12, 2024

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.

cobish avatar cobish commented on September 12, 2024

01 月 19 日

ElementUI

  • 今天给 el-input 绑定了 @keyup.enter="submit" 事件不起作用,后来去 github 源码 issue 搜索了发现是这样绑定 @keyup.enter.native="submit"

from demo.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.