我很难理解"前瞻"和"外观"的概念.例如,有一个字符串"aaaaaxbbbbb".如果我们看"x",那么lookahead是否意味着向"bbbbb"或"aaaaa"看"x"?我指的是方向.
Asp.net 核心 2.1 + Angular 6 应用程序。在我的Start.cs档案里。我们有
app.UseSpa(spa =>
{
// To learn more about options for serving an Angular SPA from ASP.NET Core,
// see https://go.microsoft.com/fwlink/?linkid=864501
spa.Options.SourcePath = "ClientApp";
if (env.IsDevelopment())
{
spa.UseAngularCliServer(npmScript: "start");
}
});
Run Code Online (Sandbox Code Playgroud)
早上,我从 Visual Studio 运行了 asp.net 核心应用程序(单击 F5)。我让 webpack 构建卡在构建模块上。它构建了一个 scss 文件很长时间并挂在那里。所以网页抛出了asp.net core中间件异常。
但是在下午,我遇到了不同的错误。这是Fail: Microsoft.AspNetCore.SpaServices[0].
但是,如果我npm start在命令窗口中运行,则dotnet run在 Visual Studio 代码中运行。没事。
告诉我该怎么做?
我听说等待是异步操作.但是,由于这是一个重要的概念,为什么我在MSDN上找不到精确的定义?
我的问题不是如何编写async/await.我的问题是要了解这个概念.MSDN有这个概念,async/await但没有awaitable.
那么什么是等待的?如果是手术,包含哪些内容?
非常简单的代码。但有错误cannot find module '@angular/core'。
课程.组件.ts
import {Component} from '@angular/core'
@Component({
selector: 'courses'
})
export class CoursesComponent{
}
Run Code Online (Sandbox Code Playgroud)
打字.json
{
"ambientDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2"
}
}
Run Code Online (Sandbox Code Playgroud)
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
Run Code Online (Sandbox Code Playgroud)
包.json
{
"name": "angular2-quickstart",
"version": "1.0.0",
"scripts": {
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" ",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"typings": …Run Code Online (Sandbox Code Playgroud) 在我的表中,我有主键id.它是一个双字节varchar类型.如果id从00到89,则返回一组数据,否则返回不同的数据.我在存储过程中的查询是
BEGIN
select * from MyTable where (id like '0%' or
id like '1%' or
id like '2%' or
id like '3%' or
id like '4%' or
id like '5%' or
id like '6%' or
id like '7%' or
id like '8%')
and status = 'active'
union all
select * from MyTable where id like '9%' and status='inactive'
END
Run Code Online (Sandbox Code Playgroud)
我的问题是如何改进它?我可以将字符串转换为数字然后使用>89或<90?
angular ×2
.net ×1
angular-cli ×1
asp.net-core ×1
async-await ×1
asynchronous ×1
oracle ×1
regex ×1
sql ×1
typescript ×1
webpack ×1