我正在尝试使用在节点js中编写的服务器端检查angularjs应用程序,这是我在webmatrix运行时遇到的错误
处理请求时,iisnode遇到错误.
Run Code Online (Sandbox Code Playgroud)HRESULT: 0x2 HTTP status: 500 HTTP reason: Internal Server Error您收到此HTTP 200响应,因为system.webServer/iisnode/@devErrorsEnabled配置设置为"true".
除了node.exe进程的stdout和stderr的日志之外,请考虑使用调试和ETW跟踪来进一步诊断问题.
node.exe进程尚未向stderr写入任何信息,或者iisnode无法捕获此信息.经常的原因是iisnode模块无法创建日志文件来捕获node.exe的stdout和stderr输出.请检查运行node.js应用程序的IIS应用程序池的标识是否具有对node.js应用程序所在服务器上的目录的读写访问权限.或者,您可以通过将web.config的system.webServer/iisnode/@loggingEnabled元素设置为"false"来禁用日志记录.
有人知道如何解决它吗?
我正在尝试在模拟器上运行Google Map的示例项目.现在我有一个错误:
Google Maps Android API v2仅支持使用OpenGL ES 2.0及更高版本的设备
我该如何解决这个问题?
我有两个css表达式:
.firstexpression.secondexpression (without space)
Run Code Online (Sandbox Code Playgroud)
和
.firstexpression .secondexpression (with space)
Run Code Online (Sandbox Code Playgroud)
有什么不同?
我创建了sass项目.在我的global.scss文件中,我有2个导入:
//Modules and Variables
@import "partials/base";
//Partials
@import "partials/tables";
Run Code Online (Sandbox Code Playgroud)
当我编译文件时,我希望在google chrome inspector中看到global.css文件,但我看到了_base.scss和_tables.scss.
为什么?global.scss的编译是正确的,我可以看到所有的global.css文件.
我成功构建了 canDeactivate 防护,并且在正常确认下工作正常,但我想使用角度材质对话框来实现它,在这里我面临一些问题。
这是我的守卫:
@Injectable()
export class CanDeactivateGuard implements CanDeactivate<CreateQuoteComponent> {
constructor(
public dialog: MatDialog,
){
}
canDeactivate(component: CreateQuoteComponent): boolean {
if (!component.changesSaved) {
return component.confirmDialog();
//return confirm('You have not saved your current work. Do you want to proceed and discard your changes?');
}
return true;
}
}
Run Code Online (Sandbox Code Playgroud)
这是我的组件中的一个函数:
confirmDialog(): boolean {
const message = 'You have not saved your current work. Do you want to proceed and discard?';
const data = { 'message': message, 'toShowCancel': true, 'buttonYesCaption': 'Yes', …Run Code Online (Sandbox Code Playgroud) 我正在使用 angular 并进行级联选择
city: {};
area: {};
selectedAreas: [];
selectedSuburbs: [];
arrAddress = [{
city: "Auckland",
id: 1,
areas: [{
area: "Waitakere",
id: 11,
suburbs: [{
suburb: "Rodney",
id: 12
},
{
suburb: "North Shore",
id: 13
},
{
suburb: "City",
id: 14
},
]
}]
}];
onSelectCity(e) {
this.city = this.arrAddress.find(element => element.id === Number(e.value));
this.selectedAreas = this.city['areas'];
}
onSelectArea(e) {
this.area = this.selectedAreas.find(element => element.id === Number(e.value));
this.selectedSuburbs = this.area['suburbs'];
}
Run Code Online (Sandbox Code Playgroud)
在函数中onSelectArea我收到一个错误element.id
“[ts] 类型 'never' …
angular ×2
css ×2
android ×1
angularjs ×1
google-maps ×1
guard ×1
javascript ×1
node.js ×1
sass ×1
typescript ×1