小编Siv*_*iva的帖子

错误错误:未捕获(承诺):类型错误:i.BehaviorSubject 不是 Angular 10 SSR 中的构造函数

请帮我解决问题:在此处输入图片描述

成功构建并在具有角度通用的浏览器上运行后,我遇到了这个问题

这是我的包 json :

{
  "name": "ssr",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@angular/animations": "10.0.5",
    "@angular/cdk": "10.1.0",
    "@angular/common": "10.0.5",
    "@angular/compiler": "10.0.5",
    "@angular/core": "10.0.5",
    "@angular/fire": "^6.0.2",
    "@angular/forms": "10.0.5",
    "@angular/http": "^7.2.16",
    "@angular/localize": "^10.0.5",
    "@angular/material": "10.1.0",
    "@angular/material-moment-adapter": "10.1.0",
    "@angular/platform-browser": "10.0.5",
    "@angular/platform-browser-dynamic": "10.0.5",
    "@angular/platform-server": "^10.0.5",
    "@angular/router": "10.0.5",
    "@ng-bootstrap/ng-bootstrap": "^7.0.0",
    "@ng-toolkit/universal": "^8.1.0",
    "@nguniversal/express-engine": "^10.0.1",
    "@types/jquery": "^3.5.1",
    "@types/node": "^8.10.62",
    "angular-in-memory-web-api": "^0.11.0",
    "angular-ng-autocomplete": "^2.0.1",
    "classlist.js": "^1.1.20150312",
    "codelyzer": "^6.0.0",
    "core-js": "2.6.9",
    "crypto-js": "^3.3.0",
    "express": "^4.15.2",
    "firebase": "^7.17.1",
    "hammerjs": "^2.0.8",
    "jquery": "^3.5.1",
    "localstorage-polyfill": "^1.0.1",
    "moment": "2.24.0",
    "ng2-slim-loading-bar": …
Run Code Online (Sandbox Code Playgroud)

commonjs server-side-rendering angular-universal rxjs6 angular10

12
推荐指数
2
解决办法
4260
查看次数

MySQL显示总计和计数查询中的行数不同

我对 MySQL 中的行数感到困惑。phpMyAdmin 和 count 查询返回的总行数不同。

我的表结构是InnoDB.

Showing rows 0 - 24 (655537 total, Query took 0.1527 seconds.)
Run Code Online (Sandbox Code Playgroud)

这是浏览表格时的结果。

我的计数查询是

SELECT count(*) FROM `table_name`
Run Code Online (Sandbox Code Playgroud)

这将返回为602030

在此输入图像描述

mysql phpmyadmin

4
推荐指数
1
解决办法
2147
查看次数

如何修复ErrorException:当@OA \ Property()类型为“数组”时,需要@OA \ Items()?

我试图添加任意类型的嵌套数组。这些是我的注释:

* @OA\Property(
*      @OA\Schema(
*          type="array",
*          @OA\Items(
*              type="array",
*              @OA\Items(type={})
*          )
*      ),
*      description="bla bla bla"
* )
Run Code Online (Sandbox Code Playgroud)

php swagger-php openapi

3
推荐指数
1
解决办法
1150
查看次数

在同一个表上同时更新和选择

我试图复制同一个表name上另一列property_title上的列内部propertylistings

===============================
name         | property_title |
===============================
house        |                |
condominium  |                |
room         |                |
===============================
Run Code Online (Sandbox Code Playgroud)

这是我的查询,但它不起作用

UPDATE proplistings property_title SET (SELECT name FROM proplistings)
Run Code Online (Sandbox Code Playgroud)

php mysql

0
推荐指数
1
解决办法
57
查看次数

如何将PHP变量连接到HTML链接?

我需要将此变量连接$idCantiere到href属性

<a class="btn btn-primary" href="../../../paginaIniziale/sceltaModificaAffidatario.php?idCantiere='.$idCantiere.'">Continua -></a>   `
Run Code Online (Sandbox Code Playgroud)

换句话说,我需要当我按下"Continua->"按钮时,我将被重定向到HREF页面,但是在链接的末尾添加了"idCantiere"

html javascript php web-applications

0
推荐指数
1
解决办法
309
查看次数

PHP基于变量的命令之间交替

我正在尝试构建HTML而不必重复代码.基本上我可以选择打印或保存到文件; 选项将通过$_GET.

我遍历一个csv,所以HTML接收了很多变量.

我想过有一个变量$ action;

If $action == 'view' then

    echo "<h1>Hello World</h1>";

If $action == 'save' then

    file_put_contents($file,"<h1>Hello World</h1>", FILE_APPEND);
Run Code Online (Sandbox Code Playgroud)

我不喜欢不得不重复代码的想法,一个部分使用echo而另一部分file_put_contents.

我知道这是完全错误的,只是试图提出这个想法,有没有一种方式设置这样的变量?

if ($action == "view") {$start = 'echo'; $end = ';';}
elseif ($action == "save") {$start = 'file_put_contents($file,'; $end = ', FILE_APPEND);';}

$start "<h1>Hello World</h1>" $end
Run Code Online (Sandbox Code Playgroud)

php

0
推荐指数
1
解决办法
42
查看次数

我的查询有误,解析查询时出错

我的查询在某处似乎有错误,但是对于我的一生,如果有人可以欣赏一下,我似乎找不到它。香港专业教育学院试图谷歌搜索,看看是否有人遇到过同样的问题,但还没有运气。抱歉,如果它是重复的。

    public static void InsertMake()
    {

        try
        {
            using (var conn = new SqlCeConnection(_connectionstring))
            {
                if (conn.State == ConnectionState.Closed)
                {
                    conn.Open();
                }                    
                using (var command = new SqlCeCommand(@"INSERT INTO MAKE(description,lastupdatedone,is_deleted,on_server) VALUES (@Description, @DateTime, @Is_deleted, @On_server", conn))
                {
                    command.Parameters.AddWithValue("@Description", Program.Form_mmm.textBoxMake.Text);
                    command.Parameters.AddWithValue("@DateTime", DateTime.Now);
                    command.Parameters.AddWithValue("@Is_deleted", 0);
                    command.Parameters.AddWithValue("@On_server", 0);
                    command.ExecuteNonQuery();                      
                    conn.Close();                        
                }
            }
        }
        catch (Exception e)
        {
            MessageBox.Show(e.ToString());
        }
Run Code Online (Sandbox Code Playgroud)

错误消息是

(0x80004005)解析查询时出错。[令牌行号= 1,令牌行偏移量= 114,令牌错误= @On_server]

.net c# sql

-3
推荐指数
1
解决办法
44
查看次数