小编fr0*_*fr0的帖子

在Visual Studio代码中选择结束/开始行

在大多数编辑器中(包括Visual Studio),我可以使用Shift + End选择从光标位置到当前行末尾的所有文本,并使用Shift + Home选择直到行开头的所有文本.

这些快捷方式似乎没有开箱即用(至少在Mac版本上).有没有办法实现这一点,也许有一个我缺少的插件或设置?

macos visual-studio-code

13
推荐指数
2
解决办法
8669
查看次数

ngrx关于运行时检查的警告

我使用将我的应用程序从Angular 7升级到Angular 8 ng update。当我通过运行它时ng serve,控制台上印有一个警告ngrx

@ngrx/store: runtime checks are currently opt-in but will be the default in the next major version with the possibility to opt-out, see https://ngrx.io/guide/migration/v8 for more information.
Run Code Online (Sandbox Code Playgroud)

提供的链接上的文档讨论了ngrx-store-freeze不推荐使用的内容。但是,我的应用程序未使用ngrx-store-freeze,我也不知道什么是“运行时检查”。我需要在代码中进行哪些更改以解决此警告的来源?

ngrx angular ngrx-store

10
推荐指数
1
解决办法
1649
查看次数

行flexbox里面的嵌套列flexbox包装

我在这里有一个带有嵌套弹性框的页面:http://jsfiddle.net/fr0/6dqLh30d/

<div class="flex-group">
  <ul class="flex-container red">
    <li class="flex-item">1</li>
    <li class="flex-item">2</li>
    <li class="flex-item">3</li>
  </ul>

  <ul class="flex-container gold">
    <li class="flex-item">1</li>
    <li class="flex-item">2</li>
    <li class="flex-item">3</li>
    <li class="flex-item">4</li>
    <li class="flex-item">5</li>
  </ul>

  <ul class="flex-container blue">
    <li class="flex-item">1</li>
    <li class="flex-item">2</li>
    <li class="flex-item">3</li>
    <li class="flex-item">4</li>
    <li class="flex-item">5</li>
    <li class="flex-item">6</li>
    <li class="flex-item">7</li>
    <li class="flex-item">8</li>
  </ul>
<div>
Run Code Online (Sandbox Code Playgroud)

和(相关)CSS:

 .flex-group {
   display: flex;
   flex-direction: row;
   height: 500px;
 }

 .flex-container {
   padding: 0;
   margin: 0;
   list-style: none;
   border: 1px solid silver;
   display: flex;
   flex-direction: column;
   flex-wrap: wrap;
   flex: …
Run Code Online (Sandbox Code Playgroud)

css nested word-wrap flexbox

6
推荐指数
1
解决办法
1万
查看次数

Angular:如何在使用 query() + animate() 时保持最终动画状态

看到这个plunker:https ://plnkr.co/edit/mqwJP75zjTUmsqsqRxfH ? p = preview

这是 Angular v5.1.3。

有按钮可以在向上 + 淡入(不透明度 1)和向下 + 淡出(不透明度 0)状态之间切换。我很困惑为什么在动画结束后向下状态会恢复到原始值,以及我应该怎么做才能使动画保持其最终值。

请注意,state()由于https://github.com/angular/angular/issues/18775(不允许与 结合使用query()),我明确未使用。另外,我认识到我可能能够在不使用的情况下完成这个特定的例子query(),但我对在一般情况下解决这个问题更感兴趣,而不是让特定的 plunker 示例工作。

animation angular

6
推荐指数
0
解决办法
1328
查看次数