小编Coo*_*ies的帖子

意外的结束标记"div"错误angular2 HTML

我在控制台中遇到了一些错误,并且不确定问题是什么HTML.任何帮助,将不胜感激.

error_handler.js:51 EXCEPTION:未捕获(在保证中):错误:模板解析错误:意外结束标记"div"("单击此处注册[错误 - >]"):ResetPassword @ 22:1错误:模板解析错误:意外的结束标记"div"("单击此处注册[ERROR - >]"):ResetPassword @ 22:1

<section class="reset-password">
<div class="container container-responsive inner-top-xs">
    <form [formGroup]="resetPasswordForm" (ngSubmit)="resetPassword(resetPasswordForm.value, resetPasswordForm.valid)">
        <h4>Please enter your e-mail address and a temporary password will be sent to you.</h4>
        <div class="form-group">
            <label class="control-label" for="email">Email</label>
            <input type="text" formControlName="email" required class="form-control" id="email" placeholder="Email">
            <validation-message [control]="resetPasswordForm.controls.email"></validation-message>
        </div>
        <button type="submit" class="btn btn-flat__blue outer-top-xs" [disabled]="!resetPasswordForm.valid">RESET PASSWORD</button>
    </form>
    <div class="alert alert-dismissible alert-danger outer-top-xs" *ngIf="errorMessage && !successMessage"">
      <button type="button" class="close" data-dismiss="alert">&times;</button>
      {{errorMessage}}
    </div>
    <div class="alert alert-dismissible alert-success outer-top-xs" *ngIf="successMessage"> …
Run Code Online (Sandbox Code Playgroud)

html angular

11
推荐指数
2
解决办法
2万
查看次数

使用css变换移动时,SVG图像变得模糊和闪烁

使用CSS转换时,我该怎么做才能避免图像模糊/闪烁问题?我尝试过CSS转换效果的一堆建议让图像模糊/移动图像1px,在Chrome中?,但似乎无法搞清楚.

我在下面附上了plunker代码.

https://plnkr.co/edit/kXbrxjnD0llt3u8dBujv?p=preview

的index.html

  <head>
    <link rel="stylesheet" href="style.css">
    <script src="script.js"></script>
  </head>

  <body>
                    <img src="usequities_green.svg" class="sample_fixed_income">

<section class="sectors">
    <div class="container index-container-responsive">
        <div class="row">
                <div class="sectors-icon">
                    <img src="usequities_green.svg" class="sectors-icon-container fixed_income">
                </div>
        </div>
    </div>
</section>  </body>

</html>
Run Code Online (Sandbox Code Playgroud)

style.css文件

/* Styles go here */


.sectors {
    background-color: #30B784;
    color: white;
    display: flex;
    height: 680px;
    align-items: center;
    justify-content: center;
    position: relative;

}

.sectors__section__title {
    font-size: 32px;
    line-height: 48px;
}

.sectors-icon .sectors-icon-container{
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
    background-color: white; …
Run Code Online (Sandbox Code Playgroud)

css transform

5
推荐指数
1
解决办法
374
查看次数

node-redis 错误:已弃用:SET 命令包含对象类型的参数

我正在使用connect-redis-crypto模块(https://github.com/jas-/connect-redis-crypto ),该模块用于在connect-redishttps://github.com/tj/connect-redis)之上加密 redis 会话数据. 我的 redis 版本是3.2.8.

我遇到了错误node-redis: Deprecated: The SET command contains a argument of type Object。根据较大的错误消息,它似乎来自尝试解析[object Object]不是 JSON 字符串的字符串。我将保存用户信息的嵌套对象req.session直接存储在 redis 中(理想情况下是加密的)。

我从某些来源了解到 Redis 中的嵌套对象是不允许的,这可能会导致此错误,但我相信该库将数据存储为 JSON 以允许嵌套对象。connect-redis对我来说很好用,但是当这个connect-redis-crypto库尝试 JSON 解析加密数据时,它会抛出这个特定的错误。

非常感谢您的帮助!

node_redis: Deprecated: The SET command contains a argument of type Object.
This is converted to "[object Object]" by using .toString() now and will return an error from v.3.0 on.
Please …
Run Code Online (Sandbox Code Playgroud)

encryption json redis node.js

5
推荐指数
1
解决办法
3253
查看次数

标签 统计

angular ×1

css ×1

encryption ×1

html ×1

json ×1

node.js ×1

redis ×1

transform ×1