我们已将在 8 上编写的 Angular 应用程序更新为 Angular 9,并将 primeng 库更新为 9.0.0-rc.4,但我们收到以下与 primeng 相关的错误消息。
import { MessageService } from 'primeng/components/common/api';
src/app/component/attachm.component.ts:5:55 - error TS2307: Cannot find module 'primeng/components/common/api'.
import { DynamicDialogRef, DynamicDialogConfig } from 'primeng/components/common/api';
src/app/component/email.component.ts:5:34 - error TS2307: Cannot find module 'primeng/components/common/api'.
Run Code Online (Sandbox Code Playgroud)
Package.json 看起来像这样
"dependencies": {
"@angular/animations": "^9.0.1",
"@angular/common": "~9.0.1",
"@angular/compiler": "~9.0.1",
"@angular/core": "~9.0.1",
"@angular/forms": "~9.0.1",
"@angular/localize": "^9.0.1",
"@angular/platform-browser": "~9.0.1",
"@angular/platform-browser-dynamic": "~9.0.1",
"@angular/router": "~9.0.1",
"primeflex": "^1.0.0",
"primeicons": "^2.0.0",
"primeng": "^9.0.0-rc.4",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.2", …Run Code Online (Sandbox Code Playgroud) 我正在尝试将 asp.net 核心 Web API 部署到 IIS。这个应用程序在 Visual Studio 上运行得非常好,当我使用 dotnet 命令运行 dll 时也是如此。此应用程序具有用于签署 JWT 令牌的证书。将应用程序部署到 IIS 后,我收到“HTTP 错误 500.30 - ANCM 进程内启动失败”,我检查了 Windows 日志,错误消息是
主机意外终止。Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: 系统找不到指定的文件。在 Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)......
我检查了文件路径和文件名一切都正确,但由于某些原因 IIS 无法加载找到证书文件。另外,我检查了许可,它看起来也不错。不知道为什么我收到此错误消息
此外,我使用 IIS 指向的 dotnet run 命令运行了相同的应用程序 dll 文件,但我没有收到任何错误。我只有在部署到 IIS 后才会收到此错误。
在 startup.cs 文件和配置方法上,我在这一行遇到错误。
var cert = new X509Certificate2("test_cert.pfx", pwdFrmVault);
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 webpack 模块联合构建 Angular Micro 前端。我已将所有自定义 webpack 文件添加到应用程序中。所有应用程序都构建良好。另外,当我尝试从各自的路径访问各个微前端时,它工作正常,但是当我尝试从 shell 应用程序访问各个微前端时,它会遇到无限刷新。我正在关注这篇文章作为参考。
不知道除了本文中提到的之外我还需要做什么。任何帮助都会得到帮助。
我有桌子,桌子的每个单元格都有特定的网址.我试图使用jquery获取特定单元格上的URL.这里的问题是没有为表,行和列定义类或id.只想使用标签来拉取href属性.
<table>
<tr>
<td><a href='MytestSite11.com'>site21</a></td>
<td><a href='MytestSite12.com'>site22</a></td>
<td><a href='MytestSite13.com'>site23</a></td>
</tr>
<tr>
<td><a href='MytestSite21.com'>site21</a></td>
<td><a href='MytestSite22.com'>site22</a></td>
<td><a href='MytestSite23.com'>site23</a></td>
</tr>
<tr>
<td><a href='MytestSite31.com'>site21</a></td>
<td><a href='MytestSite32.com'>site22</a></td>
<td><a href='MytestSite33.com'>site23</a></td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
我想获得第二行第二列的href元素,即MytestSite22.我试过跟随jquery代码,但它正在返回我的undefine.Not确定错过了什么.
$(function () {
var $row = $('table tr').eq(1);
var $col=$row.eq(1)
alert($col.attr('href'));
});
Run Code Online (Sandbox Code Playgroud)